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

Method __init__

test/models/test_mnist.py:16–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14# create a model
15class TinyBobNet:
16 def __init__(self):
17 self.l1 = Tensor.scaled_uniform(784, 128)
18 self.l2 = Tensor.scaled_uniform(128, 10)
19
20 def parameters(self):
21 return get_parameters(self)

Callers

nothing calls this directly

Calls 1

scaled_uniformMethod · 0.80

Tested by

no test coverage detected