Hi
So i see in the main.py (https://github.com/pytorch/examples/blob/master/imagenet/main.py 699)  we have model.train() and model.val(), i dont understand how to use them. can someone explain it to me please.
For example in here:
python main.py -a resnet18 [imagenet-folder with train and val folders] we did not specify train or eval, so how do we know which one to use.
I know my question is stupid, please let me know if there is any good tutorial to read and understand it.
Thanks