Check if model is eval or train

How can one check is a model is in train or eval state?

module.training is the boolean you are looking for. :slight_smile:

That’s easy! Thank you!

great! thanks. just solve my issue.

me too, this just solved my issue, thanks Simon!