We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4dbec commit 8837012Copy full SHA for 8837012
weight-initialization/helpers.py
@@ -28,6 +28,7 @@ def _get_loss_acc(model, train_loader, valid_loader):
28
###################
29
# train the model #
30
31
+ model.train()
32
for data, target in train_loader:
33
# clear the gradients of all optimized variables
34
optimizer.zero_grad()
0 commit comments