forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jit] ClassType hashing: hash on compilation_unit as well (pytorch#12…
…1928) Following up on pytorch#121874 - it turns out that in our case, we're seeing repeated class names that are from different compilation units. Our previous hash function wasn't considering the compilation unit, leading to hash collisions (and then exponential memory usage in the number of copies of this class name) Differential Revision: [D54916455](https://our.internmc.facebook.com/intern/diff/D54916455) Pull Request resolved: pytorch#121928 Approved by: https://github.com/eellison ghstack dependencies: pytorch#121874
- Loading branch information
1 parent
2d9cee2
commit cceabe8
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters