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

Don't do a BotorchTensorDimensionWarning when the dimensions are fine #1790

Closed
wants to merge 1 commit into from

Conversation

esantorella
Copy link
Member

Summary: The status quo behavior of _validate_tensor_args in non-strict mode is to raise an error regardless of whether there would have been an error in strict mode. This change makes it so that there is only a warning in non-strict mode when there would have been an error in strict mode

Reviewed By: Balandat

Differential Revision: D45006263

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

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

@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Merging #1790 (a0c9788) into main (646b6c1) will not change coverage.
The diff coverage is 100.00%.

❗ Current head a0c9788 differs from pull request most recent head bc06ad8. Consider uploading reports for the commit bc06ad8 to get more accurate results

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

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

esantorella added a commit to esantorella/botorch that referenced this pull request Apr 14, 2023
…pytorch#1790)

Summary:
Pull Request resolved: pytorch#1790

The status quo behavior of `_validate_tensor_args` in non-strict mode is to raise an error regardless of whether there would have been an error in strict mode. This change makes it so that there is only a warning in non-strict mode when there would have been an error in strict mode

Reviewed By: Balandat

Differential Revision: D45006263

fbshipit-source-id: 366084a13c7247bd7e5463db812191fbb7e73f57
@facebook-github-bot
Copy link
Contributor

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

esantorella added a commit to esantorella/botorch that referenced this pull request Apr 14, 2023
…pytorch#1790)

Summary:
Pull Request resolved: pytorch#1790

The status quo behavior of `_validate_tensor_args` in non-strict mode is to raise an error regardless of whether there would have been an error in strict mode. This change makes it so that there is only a warning in non-strict mode when there would have been an error in strict mode

Reviewed By: Balandat

Differential Revision: D45006263

fbshipit-source-id: cc3aad30df31f535d692facf34cb6f7b52e4cebd
@facebook-github-bot
Copy link
Contributor

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

…pytorch#1790)

Summary:
Pull Request resolved: pytorch#1790

The status quo behavior of `_validate_tensor_args` in non-strict mode is to raise an error regardless of whether there would have been an error in strict mode. This change makes it so that there is only a warning in non-strict mode when there would have been an error in strict mode

Reviewed By: Balandat

Differential Revision: D45006263

fbshipit-source-id: 46d7a314b880659dd7b99e7057e1f8452ca222e7
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ee48d4a.

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