コード例 #1
0
ファイル: stopgap.py プロジェクト: c-mori/blaze-core
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
ファイル: stopgap.py プロジェクト: renjiec/blaze-core
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)