[ONNX] Fix for batchnorm training op mode (#52758) (#62760)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62760
* Rebase
# Conflicts:
# torch/csrc/jit/passes/onnx/eval_peephole.cpp
# Conflicts:
# test/onnx/test_utility_funs.py
# torch/onnx/symbolic_opset9.py
* Update symbolic_opset12.py
* Update test.sh
# Conflicts:
# .jenkins/caffe2/test.sh
* Merge
* Fix utility tests
# Conflicts:
# test/onnx/test_pytorch_onnx_onnxruntime.py
# test/onnx/test_utility_funs.py
* Fix for comment
* Enable BN tests
* Fix for test
* Update test_pytorch_onnx_onnxruntime.py
* Update test_pytorch_onnx_onnxruntime.py
* Update test_utility_funs.py
* Update test_pytorch_onnx_onnxruntime.py
Test Plan: Imported from OSS
Reviewed By: SplitInfinity
Differential Revision: D30349060
Pulled By: msaroufim
fbshipit-source-id: 93312c17607974731c17099ae181acb6e4c1c409