pytorch
8294bff2 - [StaticRuntime] Copy version of reshape/flatten (#54353)

Commit
3 years ago
[StaticRuntime] Copy version of reshape/flatten (#54353) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/54353 The current implementation of reshape/flatten is problematic because whether the output is sometimes a tensor view and sometimes not. It entirely depends on the graph ir and input shapes. Replacing them with the copy version makes it deterministic and the output is always a tensor. Reviewed By: ajyu, edvgha Differential Revision: D26358525 fbshipit-source-id: ee7571317b061221a8d50083676cded388ce6f87
Author
Hao Lu
Parents
Loading