[ONNX] Support primitive type input/outputs and attributes (#53550) (#54864)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/54864
Support primitive type attributes. Needed for Silero model.
Test Plan: Imported from OSS
Reviewed By: nikithamalgifb
Differential Revision: D27408982
Pulled By: SplitInfinity
fbshipit-source-id: 16b291eedbe9f9bb31d7664a29a484555df53755