Skip to content

Conversation

@esantorella
Copy link
Contributor

Summary:
Context: #2509 gives a clear overview

This PR:

  • Checks the shape of the X provided to an AffineInputTransform when it transforms the data, regardless of whether it is updating the coefficients.

Makes some unrelated changes:

  • Fixes the example in the docstring for batched_multi_output_to_single_output
  • fixes an incorrect shape in test_approximate_gp
  • Makes data and transform batch shapes match in TestConverters, since those usages will now (appropriately) error

Differential Revision: D62318530

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

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

@facebook-github-bot
Copy link
Contributor

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

esantorella added a commit to esantorella/botorch that referenced this pull request Sep 6, 2024
…, even in eval mode (meta-pytorch#2510)

Summary:
Pull Request resolved: meta-pytorch#2510

Context: meta-pytorch#2509 gives a clear overview

This PR:
* Checks the shape of the `X` provided to an `AffineInputTransform` when it transforms the data, regardless of whether it is updating the coefficients.

Makes some unrelated changes:
* Fixes the example in the docstring for `batched_multi_output_to_single_output`
* fixes an incorrect shape in `test_approximate_gp`
* Makes data and transform batch shapes match in `TestConverters`, since those usages will now (appropriately) error

Differential Revision: D62318530
@facebook-github-bot
Copy link
Contributor

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

esantorella added a commit to esantorella/botorch that referenced this pull request Sep 6, 2024
…, even in eval mode (meta-pytorch#2510)

Summary:
Pull Request resolved: meta-pytorch#2510

Context: meta-pytorch#2509 gives a clear overview

This PR:
* Checks the shape of the `X` provided to an `AffineInputTransform` when it transforms the data, regardless of whether it is updating the coefficients.

Makes some unrelated changes:
* Fixes the example in the docstring for `batched_multi_output_to_single_output`
* fixes an incorrect shape in `test_approximate_gp`
* Makes data and transform batch shapes match in `TestConverters`, since those usages will now (appropriately) error

Reviewed By: saitcakmak

Differential Revision: D62318530
esantorella added a commit to esantorella/botorch that referenced this pull request Sep 6, 2024
…, even in eval mode (meta-pytorch#2510)

Summary:
Pull Request resolved: meta-pytorch#2510

Context: meta-pytorch#2509 gives a clear overview

This PR:
* Checks the shape of the `X` provided to an `AffineInputTransform` when it transforms the data, regardless of whether it is updating the coefficients.

Makes some unrelated changes:
* Fixes the example in the docstring for `batched_multi_output_to_single_output`
* fixes an incorrect shape in `test_approximate_gp`
* Makes data and transform batch shapes match in `TestConverters`, since those usages will now (appropriately) error

Reviewed By: saitcakmak

Differential Revision: D62318530
@facebook-github-bot
Copy link
Contributor

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

@esantorella esantorella linked an issue Sep 6, 2024 that may be closed by this pull request
…, even in eval mode (meta-pytorch#2510)

Summary:
Pull Request resolved: meta-pytorch#2510

Context: meta-pytorch#2509 gives a clear overview

This PR:
* Checks the shape of the `X` provided to an `AffineInputTransform` when it transforms the data, regardless of whether it is updating the coefficients.

Makes some unrelated changes:
* Fixes the example in the docstring for `batched_multi_output_to_single_output`
* fixes an incorrect shape in `test_approximate_gp`
* Makes data and transform batch shapes match in `TestConverters`, since those usages will now (appropriately) error

Reviewed By: saitcakmak

Differential Revision: D62318530
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2510   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         193      193           
  Lines       16941    16941           
=======================================
  Hits        16939    16939           
  Misses          2        2           

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

@facebook-github-bot
Copy link
Contributor

@esantorella merged this pull request in 33e11f4.

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.

[Bug] AffineInputTransform does not check dimensions after training

2 participants