[ONNX] Support list remove for onnx export (#51373) (#51526)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51526
* Support aten::Delete
* Refactor prepare_inplace_ops_for_onnx into one pass.
Test Plan: Imported from OSS
Reviewed By: pbelevich
Differential Revision: D26203114
Pulled By: SplitInfinity
fbshipit-source-id: ce940bca54a30c39f4b0810f62b0e7b497508f59