Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tinygrad/tinygrad
/ __init__
Method
__init__
test/backend/test_optim.py:17–19 ·
view source on GitHub ↗
(self, tensor)
Source
from the content-addressed store, hash-verified
15
16
class
TeenyNet:
17
def
__init__(self, tensor):
18
self.x = _param(tensor, x_init.copy())
19
self.W = _param(tensor, W_init.copy())
20
def
forward(self):
21
return
(self.x * self.W).sum()
22
Callers
nothing calls this directly
Calls
2
_param
Function · 0.85
copy
Method · 0.45
Tested by
no test coverage detected