Esempio n. 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)
Esempio n. 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)
Esempio n. 3
0
 def simple_type(self):
     return coretypes.from_python_scalar(self.val)
Esempio n. 4
0
 def simple_type(self):
     return coretypes.from_python_scalar(self.val)