Commit ef73ea6
Add dtype
Summary:
<!--
Thank you for sending the PR! We appreciate you spending the time to make BoTorch better.
Help us understand your motivation by explaining why you decided to make this change.
You can learn more about contributing to BoTorch here: https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md
-->
## Motivation
By chance, I encountered that there is no explicit dtype provided in the basic example on the botorch website, which then throws a warning when running the code, which I find kind of annoying. This PR just adds `dtype=torch.double` to the example, as it is also done for somehow the same code example in the `README.md` on github.
### Have you read the [Contributing Guidelines on pull requests](https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md#pull-requests)?
Yes.
Pull Request resolved: #2395
Test Plan: No additional tests needed.
Reviewed By: Balandat
Differential Revision: D59056278
Pulled By: esantorella
fbshipit-source-id: 45786326d421e687482a038068bc4d6a21e9f84ctorch.double to basic example on website (#2395)1 parent fac5faa commit ef73ea6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
0 commit comments