pytorch
e184a884 - Fix comparisions for ConcreteModuleType (#32256)

Commit
4 years ago
Fix comparisions for ConcreteModuleType (#32256) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/32256 Previously two unrelated modules loaded from torch.jit.load would compare equal because we only considered their data_ attributes which are initialized blank in torch.jit.load. This changes ConcreteModuleType to distinguish when the data_ attribute is blank vs when it is empty. This replaces the poisoned logic. ghstack-source-id: 96755797 Test Plan: oss Differential Revision: D19423055 fbshipit-source-id: 79d6a50a3731c6eeb8466ba2a93702b49264bba0
Author
Parents
Loading