-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Robustify prune_inferior_points tests against sorting order (#2548)
Summary: Our nightly CI started failing, likely due to a sorting order change introduced in pytorch/pytorch#127936 This change robustifies the tests against the point order (and also fixes a torch deprecation warning). NOTE: Even though pytorch/pytorch#127936 was unlanded, getting these changes is will help robustify the tests going forward. NOTE: As this makes `torch.sort` use `stable=True`, this will come at a slight performance hit. However, the tensor sizes typically involved in `prune_inferior_points` are quite small (order of a few hundred items maybe), so this should be negligible. Pull Request resolved: #2548 Test Plan: unit tests Reviewed By: sdaulton, saitcakmak Differential Revision: D63260870 Pulled By: Balandat
- Loading branch information
1 parent
9fc39fa
commit f1ffb7e
Showing
4 changed files
with
20 additions
and
29 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