We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f23e90b commit 7da91b1Copy full SHA for 7da91b1
botorch/optim/optimize.py
@@ -192,7 +192,9 @@ def _optimize_acqf_all_features_fixed(
192
X = X.expand(q, *X.shape)
193
with torch.no_grad():
194
acq_value = acq_function(X)
195
- return X, acq_value[0]
+ if acq_value.ndim == 1:
196
+ acq_value = acq_value[0]
197
+ return X, acq_value
198
199
200
def _validate_sequential_inputs(opt_inputs: OptimizeAcqfInputs) -> None:
0 commit comments