Skip to content

Commit 12e213c

Browse files
committed
__call__ to forward
1 parent 4ba9ae6 commit 12e213c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mnist/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self):
4444
softmax = nn.LogSoftmax(),
4545
)
4646

47-
def __call__(self, x):
47+
def forward(self, x):
4848
x = self.relu(self.pool1(self.conv1(x)))
4949
x = self.relu(self.pool2(self.conv2(x)))
5050
x = x.view(-1, 800)

0 commit comments

Comments
 (0)