Fix ONNX forward compatibility (#59327)
Summary:
Fixes `onnx.utils.polish_model` not found exception when executed using onnx-1.9
Pull Request resolved: https://github.com/pytorch/pytorch/pull/59327
Reviewed By: H-Huang
Differential Revision: D28840563
Pulled By: malfet
fbshipit-source-id: 403a29a88e7dee8b3414602b9fe2b31baf737dce