MCPcopy
hub / github.com/tinygrad/tinygrad / __init__

Method __init__

test/backend/test_optim.py:24–27  ·  view source on GitHub ↗
(self, tensor)

Source from the content-addressed store, hash-verified

22
23class TinyNet:
24 def __init__(self, tensor):
25 self.x = _param(tensor, x_init.copy())
26 self.W = _param(tensor, W_init.copy())
27 self.m = tensor(m_init.copy())
28
29 def forward(self):
30 out = self.x.matmul(self.W).relu()

Callers

nothing calls this directly

Calls 2

_paramFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected