Commits


zhijiang authored and GitHub committed 1977b7ed6a6
Fix pythonop training_mode in evaluation mode (#13514) Customer reported this issue: they see many warnings when doing hte evaluation using ORTModule.  After investigation, we found the `training_mode` is exported to a wrong value in evaluation mode, it's value should be 0, but we found it is 1. Fix: fix pythonop training mode if training_mode's type is torch._C._onnx.TrainingMode, then not matter it is EVAL or TRAINING, "if training_mode" will always be true