-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NaN handling in map_subset (#9893)
Summary: Pull Request resolved: #9893 Ensure NaNs values of any binary representations are treated as equal and can be identified as keys in a map. Summary of changes: - For primitive type keys: Use a map that employs the correct hashing and equality operators for floating types. - For complex type keys: It uses GenericView as a key that uses BaseVector's hashing and equality operators. Those recursively call SimpleVector's respective functions that were addressed in #9963 Reviewed By: spershin Differential Revision: D57681657 fbshipit-source-id: 0ce281f303dd0633e698e4b386627c3831567d92
- Loading branch information
1 parent
cda5d8a
commit a10bd49
Showing
4 changed files
with
71 additions
and
3 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
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