You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I started to learn pytorch a few months ago,
so I might be questioning basic stuff.
in [Non-local_pytorch/demo_MNIST_train.py](url) file,
there was net.train() in the 50th line, within the training loop.
after the testing loop, net.train() is called once more in the 70th line.
I know that switching the network into training mode after the testing loop is important,
but why is net.train() in the 70th line necessary when it would be called at the beginning of the training loop anyways?
The text was updated successfully, but these errors were encountered:
Hi, I started to learn pytorch a few months ago,
so I might be questioning basic stuff.
in [Non-local_pytorch/demo_MNIST_train.py](url) file,
there was
net.train()
in the 50th line, within the training loop.after the testing loop,
net.train()
is called once more in the 70th line.I know that switching the network into training mode after the testing loop is important,
but why is
net.train()
in the 70th line necessary when it would be called at the beginning of the training loop anyways?The text was updated successfully, but these errors were encountered: