pytorch
911b2f2b - [SR] Mark create_owned_ref with AliasAnalysisKind::CONSERVATIVE (#75381)

Commit
3 years ago
[SR] Mark create_owned_ref with AliasAnalysisKind::CONSERVATIVE (#75381) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/75381 Noticed while debugging another issue that this op was triggering copies in `verify_and_correct_memory_overlap`. This issue is that this op (by design) produces an alias, but `AliasDb` inferred a pure-function schema. Mark it conservative so it knows that aliases are produced. ghstack-source-id: 154236396 Test Plan: CI Reviewed By: tenpercent Differential Revision: D35450420 fbshipit-source-id: 8c3535ab2514d41fdd4f578c1504adf2f377463f (cherry picked from commit 045f225bd1e8e4c533d5098e956010cea56639ec)
Author
Mike Iovine
Committer
Parents
Loading