MCPcopy
hub / github.com/tinygrad/tinygrad / Size

Function Size

tinygrad/nn/onnx.py:599–599  ·  view source on GitHub ↗
(data:Tensor)

Source from the content-addressed store, hash-verified

597 return value.expand(shape)
598
599 def Size(data:Tensor): return data.numel()
600 def Shape(data:Tensor, end:int|None=None, start:int=0): return Tensor(data.shape[start:end], dtype=dtypes.int64, device=data.device)
601
602 # ***** Unary Ops (math) *****

Callers

nothing calls this directly

Calls 1

numelMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…