[ONNX] Process const folding progressively when converts to ONNX (#54569) (#57601)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57601
This PR automatically solves onnx const attribute issue in PR https://github.com/pytorch/pytorch/pull/53784.
Test Plan: Imported from OSS
Reviewed By: malfet
Differential Revision: D28393525
Pulled By: SplitInfinity
fbshipit-source-id: 833dac7c71f24a88af62d5dd2be0a702ed34d053
Co-authored-by: David <jiafa@microsoft.com>