pytorch
50ba94f5 - [JIT] Add aliasing checks in SchemaInfo with associated tests (#80984)

Commit
3 years ago
[JIT] Add aliasing checks in SchemaInfo with associated tests (#80984) - Created may_alias method in SchemaInfo to update the implementation of FunctionSchema::may_alias for aliasing cases due to inputs aliasing. - Created output_alias_map_ internal variable to check cases where outputs might alias due to inputs aliasing. This variable is updated in generateAliasMap(). - Added tests for various may_alias special cases (input - input, input - output, output - output) due to inputs aliasing causing other arguments to also alias. Pull Request resolved: https://github.com/pytorch/pytorch/pull/80984 Approved by: https://github.com/davidberard98
Author
goldenxuett
Committer
Parents
Loading