PyTorch_Tutorial icon indicating copy to clipboard operation
PyTorch_Tutorial copied to clipboard

请教一个训练的问题

Open buptcwk opened this issue 5 years ago • 3 comments

main.py里,第165行写了net.eval(),为什么在评估完验证集结果后不需要写net.train()把模式转换回去呢?

buptcwk avatar Dec 11 '19 09:12 buptcwk

切换回去的必要性是什么?

chenxofhit avatar Dec 12 '19 03:12 chenxofhit

切换回去的必要性是什么?

评估完验证集不是会继续回到循环再进行下一个epoch的训练么?不需要转换回去吗

buptcwk avatar Dec 12 '19 03:12 buptcwk

从逻辑上讲应该不会来回切换的 @buptcwk

chenxofhit avatar Dec 25 '19 08:12 chenxofhit