Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robustify prune_inferior_points tests against sorting order #2548

Closed
wants to merge 1 commit into from

Conversation

Balandat
Copy link
Contributor

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)

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 21, 2024
@facebook-github-bot
Copy link
Contributor

@Balandat has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63260870

Balandat added a commit to Balandat/botorch that referenced this pull request Sep 23, 2024
…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)

Pull Request resolved: pytorch#2548

Differential Revision: D63260870

Pulled By: Balandat
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63260870

Balandat added a commit to Balandat/botorch that referenced this pull request Sep 23, 2024
…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)

Pull Request resolved: pytorch#2548

Differential Revision: D63260870

Pulled By: Balandat
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63260870

Balandat added a commit to Balandat/botorch that referenced this pull request Sep 23, 2024
…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)

Pull Request resolved: pytorch#2548

Reviewed By: sdaulton

Differential Revision: D63260870

Pulled By: Balandat
Copy link

codecov bot commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.98%. Comparing base (ab5ffea) to head (f1ffb7e).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2548   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         193      193           
  Lines       17010    17056   +46     
=======================================
+ Hits        17007    17053   +46     
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…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: pytorch#2548

Test Plan: unit tests

Reviewed By: sdaulton, saitcakmak

Differential Revision: D63260870

Pulled By: Balandat
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63260870

@facebook-github-bot
Copy link
Contributor

@Balandat merged this pull request in ad9978f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants