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

Fix PairwiseGP comparisons might be implicitly modified #1811

Closed
wants to merge 1 commit into from

Conversation

ItsMrLin
Copy link
Contributor

@ItsMrLin ItsMrLin commented May 2, 2023

Summary:
Fix the bug where the unconsolidated comparisons might be implicitly modified modified when calling forward.
This is because self.comparisons is passed into set_train_data in forward, which itself might already been consolidated/deduped.

Reviewed By: qingfeng10

Differential Revision: D45472153

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels May 2, 2023
@facebook-github-bot
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #1811 (9030c1b) into main (1264316) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 9030c1b differs from pull request most recent head 47eac7a. Consider uploading reports for the commit 47eac7a to get more accurate results

@@            Coverage Diff            @@
##              main     #1811   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          170       170           
  Lines        14913     14913           
=========================================
  Hits         14913     14913           
Impacted Files Coverage Δ
botorch/models/pairwise_gp.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

ItsMrLin added a commit to ItsMrLin/botorch that referenced this pull request May 2, 2023
Summary:
Pull Request resolved: pytorch#1811

Fix the bug where the unconsolidated comparisons might be implicitly modified modified when calling forward.
This is because `self.comparisons` is passed into `set_train_data` in `forward`, which itself might already been consolidated/deduped.

Reviewed By: qingfeng10

Differential Revision: D45472153

fbshipit-source-id: 97aef3517d35d36293d0f13ff3503c3fcdc692c5
@ItsMrLin ItsMrLin force-pushed the export-D45472153 branch from 755880d to 60c45b6 Compare May 2, 2023 06:56
@facebook-github-bot
Copy link
Contributor

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

ItsMrLin added a commit to ItsMrLin/botorch that referenced this pull request May 3, 2023
Summary:
Pull Request resolved: pytorch#1811

Fix the bug where the unconsolidated comparisons might be implicitly modified modified when calling forward.
This is because `self.comparisons` is passed into `set_train_data` in `forward`, which itself might already been consolidated/deduped.

Reviewed By: qingfeng10

Differential Revision: D45472153

fbshipit-source-id: d2e73074650b4a9c77d7fcc7f3e04958a13acee3
@ItsMrLin ItsMrLin force-pushed the export-D45472153 branch from 60c45b6 to 886dbf8 Compare May 3, 2023 19:57
@facebook-github-bot
Copy link
Contributor

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

ItsMrLin added a commit to ItsMrLin/botorch that referenced this pull request May 3, 2023
Summary:
Pull Request resolved: pytorch#1811

Fix the bug where the unconsolidated comparisons might be implicitly modified modified when calling forward.
This is because `self.comparisons` is passed into `set_train_data` in `forward`, which itself might already been consolidated/deduped.

Reviewed By: qingfeng10

Differential Revision: D45472153

fbshipit-source-id: 9029aab797bf89de8d2ec18d4be09db195717c83
@ItsMrLin ItsMrLin force-pushed the export-D45472153 branch from 886dbf8 to 3307167 Compare May 3, 2023 20:08
@facebook-github-bot
Copy link
Contributor

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

ItsMrLin added a commit to ItsMrLin/botorch that referenced this pull request May 3, 2023
Summary:
Pull Request resolved: pytorch#1811

Fix the bug where the unconsolidated comparisons might be implicitly modified modified when calling forward.
This is because `self.comparisons` is passed into `set_train_data` in `forward`, which itself might already been consolidated/deduped.

Reviewed By: qingfeng10

Differential Revision: D45472153

fbshipit-source-id: 259415c8ae59200bae141135c8f690c9a3dd0880
@ItsMrLin ItsMrLin force-pushed the export-D45472153 branch from 3307167 to 088fe1b Compare May 3, 2023 20:16
@facebook-github-bot
Copy link
Contributor

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

ItsMrLin added a commit to ItsMrLin/botorch that referenced this pull request May 3, 2023
Summary:
Pull Request resolved: pytorch#1811

Fix the bug where the unconsolidated comparisons might be implicitly modified modified when calling forward.
This is because `self.comparisons` is passed into `set_train_data` in `forward`, which itself might already been consolidated/deduped.

Reviewed By: qingfeng10

Differential Revision: D45472153

fbshipit-source-id: 2457eaf2db1dd44924c17718d8e8c2b31a447929
@ItsMrLin ItsMrLin force-pushed the export-D45472153 branch from 088fe1b to da860c8 Compare May 3, 2023 20:22
@facebook-github-bot
Copy link
Contributor

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

ItsMrLin added a commit to ItsMrLin/botorch that referenced this pull request May 3, 2023
Summary:
Pull Request resolved: pytorch#1811

Fix the bug where the unconsolidated comparisons might be implicitly modified modified when calling forward.
This is because `self.comparisons` is passed into `set_train_data` in `forward`, which itself might already been consolidated/deduped.

Reviewed By: qingfeng10

Differential Revision: D45472153

fbshipit-source-id: 7f7659e277feed05fa405cd202aea5173351c617
@ItsMrLin ItsMrLin force-pushed the export-D45472153 branch from da860c8 to f36eee0 Compare May 3, 2023 20:30
@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: pytorch#1811

Fix the bug where the unconsolidated comparisons might be implicitly modified modified when calling forward.
This is because `self.comparisons` is passed into `set_train_data` in `forward`, which itself might already been consolidated/deduped.

Reviewed By: qingfeng10

Differential Revision: D45472153

fbshipit-source-id: e7dda1ecd5245f753a6dd67c7f13a31b375b5e49
@ItsMrLin ItsMrLin force-pushed the export-D45472153 branch from f36eee0 to 47eac7a Compare May 3, 2023 21:06
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in e7077a6.

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