MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / __init__

Method __init__

tools/low_precision_optimize/simple_graph.py:39–55  ·  view source on GitHub ↗
(
        self,
        name: str = "",
        op: str = "",
        inputs: List[str] = [],
        output_nodes: List[str] = [],
        tensors: Dict[str, List[str]] = {},
    )

Source from the content-addressed store, hash-verified

37
38class SimpleNode:
39 def __init__(
40 self,
41 name: str = "",
42 op: str = "",
43 inputs: List[str] = [],
44 output_nodes: List[str] = [],
45 tensors: Dict[str, List[str]] = {},
46 ):
47 self.name = name
48 self.op = op
49 self.inputs = inputs
50 # Input tensors.
51 self.inputs_tensors = [get_canonical_tensor_name(n) for n in inputs]
52 # Output nodes.
53 self.output_nodes = output_nodes.copy()
54 # Mapping from output tensor name to list of nodes that consume this tensor.
55 self.tensors = tensors.copy()
56
57 @property
58 def num_inputs(self) -> int:

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45

Tested by

no test coverage detected