Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update on "[JIT] Add API for ignoring arbitrary module attributes"
**Summary** This commit adds an API for ignoring arbitrary module attributes during scripting. A class attribute named `ignored_attributes` containing names of attributes to ignore can be added to the class of the instance being scripted. Attributes ignored in this fashion cannot be used in `forward`, methods used by `forward` or by `@exported` methods. They are, however, copied to the `RecursiveScriptModule` wrapper and can be used by `@ignored` methods and regular Python code. **Test Plan** This commit adds unit tests to `TestScriptPy3` to test this new API. Differential Revision: [D23971882](https://our.internmc.facebook.com/intern/diff/D23971882) [ghstack-poisoned]
- Loading branch information