Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get rid of isCustomClassRegistered in favor of try/catch on "[PyTorch…
…] Fix getCustomClassType() perf" 1) It was copying the entire hash table every time. 2) We don't need to do a hash lookup at all. Differential Revision: [D25385543](https://our.internmc.facebook.com/intern/diff/D25385543/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D25385543/)! [ghstack-poisoned]
- Loading branch information
Showing
3 changed files
with
22 additions
and
20 deletions.
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
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