OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

What does model.eval() do in pytorch?

  • Thread starter Thread starter Gulzar
  • Start date Start date
G

Gulzar

Guest
When should I use .eval()? I understand it is supposed to allow me to "evaluate my model". How do I turn it back off for training?

Example training code using .eval().
<p>When should I use <code>.eval()</code>? I understand it is supposed to allow me to "evaluate my model". How do I turn it back off for training?</p>
<p>Example training <a href="https://github.com/natanielruiz/deep-head-pose/blob/master/code/train_hopenet.py" rel="noreferrer">code</a> using <code>.eval()</code>.</p>
 

Latest posts

Online statistics

Members online
0
Guests online
3
Total visitors
3
Top