Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trace through nn.Module dunder methods for UnspecializedNNModule (#12…
…6578) Summary: Tracing through `__init__` is important because it initializes (calls STORE_ATTR) on members. By doing that, we kick in the mutation tracking for these objects. So, things like mutating `_modules` etc is tracked automatically. Fixes pytorch/pytorch#111837 X-link: pytorch/pytorch#126578 Approved by: https://github.com/jansel Reviewed By: clee2000 Differential Revision: D58451174 Pulled By: anijain2305 fbshipit-source-id: a9dca5754b57247ed6c3bf97dc6ec0f00670c477
- Loading branch information