示例#1
0
def _get_datashape(graph_node):
    if isinstance(graph_node, graph.App):
        return _get_datashape(graph_node.operator)
    elif isinstance(graph_node, nodes.Node):
        return graph_node.datashape
    else:
        return coretypes.from_python_scalar(graph_node)
示例#2
0
def _get_datashape(graph_node):
    if isinstance(graph_node, graph.App):
        return _get_datashape(graph_node.operator)
    elif isinstance(graph_node, nodes.Node):
        return graph_node.datashape
    else:
        return coretypes.from_python_scalar(graph_node)
示例#3
0
文件: graph.py 项目: pelson/blaze
 def simple_type(self):
     return coretypes.from_python_scalar(self.val)
示例#4
0
文件: graph.py 项目: garfee/blaze
 def simple_type(self):
     return coretypes.from_python_scalar(self.val)