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

Method __init__

examples/mnist_gan.py:11–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9
10class LinearGen:
11 def __init__(self):
12 self.l1 = Tensor.scaled_uniform(128, 256)
13 self.l2 = Tensor.scaled_uniform(256, 512)
14 self.l3 = Tensor.scaled_uniform(512, 1024)
15 self.l4 = Tensor.scaled_uniform(1024, 784)
16
17 def forward(self, x):
18 x = x.dot(self.l1).leaky_relu(0.2)

Callers

nothing calls this directly

Calls 1

scaled_uniformMethod · 0.80

Tested by

no test coverage detected