Skip to content

Commit 3d47b62

Browse files
committed
Drop output dimension of acquisition function values
1 parent 18c80ff commit 3d47b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

botorch/optim/optimize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def _optimize_acqf_all_features_fixed(
196196
X = X.expand(q, *X.shape)
197197
with torch.no_grad():
198198
acq_value = acq_function(X)
199-
return X, acq_value
199+
return X, acq_value[0]
200200

201201

202202
def _validate_sequential_inputs(opt_inputs: OptimizeAcqfInputs) -> None:

0 commit comments

Comments
 (0)