Commit 21b9307
Update return type annotation to match botorch API change (facebook#5014)
Summary:
Pull Request resolved: facebook#5014
Update the return type annotation of `minimal_mixed_optimizer` wrapper function to `tuple[Tensor, Tensor | None]` to match the updated return type of `optimize_acqf_mixed_alternating` from botorch.
The upstream botorch function signature changed in D96154880 to return `tuple[Tensor, Tensor | None]` instead of `tuple[Tensor, Tensor]`, which caused the type-checking test to fail.
Reviewed By: hvarfner
Differential Revision: D96186306
fbshipit-source-id: b8c66ab8f884c892d9f19032c1f4f766e0c6d5a21 parent 70f9046 commit 21b9307
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
0 commit comments