kmkurn / pytorch-crf

(Linear-chain) Conditional random field in PyTorch.

Home Page:https://pytorch-crf.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do I need to call loss_func.eval() before the validation loops?

JohnHerry opened this issue · comments

There is trainable paramters in this module, Then Do I need to call ".eval()" before each validating and ".train()" afterwards?

Yes that's correct.