Skip to content

Commit

Permalink
Drop output dimension of acquisition function values
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed Feb 12, 2025
1 parent 8c73830 commit f23e90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion botorch/optim/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _optimize_acqf_all_features_fixed(
X = X.expand(q, *X.shape)
with torch.no_grad():
acq_value = acq_function(X)
return X, acq_value
return X, acq_value[0]


def _validate_sequential_inputs(opt_inputs: OptimizeAcqfInputs) -> None:
Expand Down

0 comments on commit f23e90b

Please sign in to comment.