pytorch
7824d827 - [ONNX] Fix export of copy_ operator (#51938) (#54870)

Commit
5 years ago
[ONNX] Fix export of copy_ operator (#51938) (#54870) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/54870 copy_operator before going into onnx exporter is being decomposed into aten::expand_as and aten::index_put. There is a scenario where inputs to copy are not of the same type, but copy op in torch does implicit casting that is not currently reflected inside onnx exporter. This PR is adding casting inside index_put symbolic in case when tensor self is not of the same type as values. Test Plan: Imported from OSS Reviewed By: nikithamalgifb Differential Revision: D27408975 Pulled By: SplitInfinity fbshipit-source-id: 15022703e76b9c98b02285c06b13d44f3c4a3f00
Author
Parents
Loading