예제 #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)