MCPcopy Create free account
hub / github.com/cactus-compute/cactus / _tensor_from_node

Method _tensor_from_node

python/src/graph.py:270–272  ·  view source on GitHub ↗
(self, node_id)

Source from the content-addressed store, hash-verified

268 }
269
270 def _tensor_from_node(self, node_id):
271 meta = self._get_output_info(node_id)
272 return Tensor(self, int(node_id), meta["shape"], meta["precision"])
273
274 def _coerce_input_array(self, data, precision):
275 if isinstance(data, Tensor):

Callers 15

inputMethod · 0.95
absMethod · 0.95
powMethod · 0.95
viewMethod · 0.95
flattenMethod · 0.95
concatMethod · 0.95
catMethod · 0.95
group_normMethod · 0.95
layer_normMethod · 0.95
softmaxMethod · 0.95
reluMethod · 0.95
geluMethod · 0.95

Calls 2

_get_output_infoMethod · 0.95
TensorClass · 0.85

Tested by

no test coverage detected