mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
chans doesn't need to be in self
This commit is contained in:
@@ -25,9 +25,9 @@ class TinyBobNet:
|
|||||||
class TinyConvNet:
|
class TinyConvNet:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
conv = 7
|
conv = 7
|
||||||
self.chans = 4
|
chans = 4
|
||||||
self.c1 = Tensor(layer_init_uniform(self.chans,1,conv,conv))
|
self.c1 = Tensor(layer_init_uniform(chans,1,conv,conv))
|
||||||
self.l1 = Tensor(layer_init_uniform(((28-conv+1)**2)*self.chans, 128))
|
self.l1 = Tensor(layer_init_uniform(((28-conv+1)**2)*chans, 128))
|
||||||
self.l2 = Tensor(layer_init_uniform(128, 10))
|
self.l2 = Tensor(layer_init_uniform(128, 10))
|
||||||
|
|
||||||
def forward(self, x):
|
def forward(self, x):
|
||||||
|
|||||||
Reference in New Issue
Block a user