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

Method __init__

python/src/graph.py:293–297  ·  view source on GitHub ↗
(self, g, node_id, shape, dtype)

Source from the content-addressed store, hash-verified

291
292class Tensor:
293 def __init__(self, g, node_id, shape, dtype):
294 self.g = g
295 self.id = int(node_id)
296 self.shape = tuple(shape)
297 self.dtype = int(dtype)
298
299 def __add__(self, other):
300 return self.g.add(self, other)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected