Skip to content

Commit 0c16ba1

Browse files
committed
updated johan_model to flatten the input in the forward loop
1 parent bab6aee commit 0c16ba1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/models/johan_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def __init__(self, image_shape, num_classes):
4646
self.relu = nn.ReLU()
4747

4848
def forward(self, x):
49+
x = x.flatten()
4950
for layer in [self.fc1, self.fc2, self.fc3, self.fc4]:
5051
x = layer(x)
5152
x = self.relu(x)

0 commit comments

Comments
 (0)