.training is an attribute of the current module.
If you call model.train() or model.eval(), this attribute will be changed for all child modules inside the parent class as can be seen here 41.
Thus, if you would like to change the .training attribute manually, you would have to change it for each module manually.