How to check if a model is in train or eval mode in Pytorch?

Viewed 3571

How to check from within a model if it is currently in train or eval mode?

1 Answers
Related