Commit 274bd47
Fix inconsistent output shapes when all features are fixed in optimize_acqf (#3241)
Summary:
When all features are fixed, _optimize_acqf_all_features_fixed now returns shapes consistent with the normal _optimize_acqf_batch path:
- return_best_only=True: candidates (q, d), acq_value scalar
- return_best_only=False: candidates (1, q, d), acq_value (1,)
Closes #2740
Pull Request resolved: #3241
Reviewed By: dme65
Differential Revision: D97315513
Pulled By: saitcakmak
fbshipit-source-id: 28a44486f72706ccdf77d3a77faa5cce6ec9ef691 parent 1d7bbdb commit 274bd47
2 files changed
Lines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
216 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
217 | 229 | | |
218 | 230 | | |
219 | 231 | | |
| |||
810 | 822 | | |
811 | 823 | | |
812 | 824 | | |
| 825 | + | |
813 | 826 | | |
814 | 827 | | |
815 | 828 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
410 | 440 | | |
411 | 441 | | |
412 | 442 | | |
| |||
0 commit comments