pytorch
3b496423 - [JIT] Add side effects checks for ops in SchemaInfo subclass (#81002)

Commit
3 years ago
[JIT] Add side effects checks for ops in SchemaInfo subclass (#81002) - Added has_side_effects method which returns whether a given op has side effects. Currently this is implemented with a hard-coded list of functions copied from ir.cpp in AliasDB, but this will eventually be implemented by returning with a given schema has the has_side_effects tag. - Tested in test_schema_info.cpp with both an op with side effects and an op without side effects. Pull Request resolved: https://github.com/pytorch/pytorch/pull/81002 Approved by: https://github.com/davidberard98
Author
goldenxuett
Committer
Parents
Loading