Skip to content

Commit ccdfee0

Browse files
authored
Adds a move-to-device in pr replication (#61)
1 parent 5fec763 commit ccdfee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/poli_baselines/core/utils/bo_pr/run_one_replication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def callback(i, loss, grad, X):
540540
gc.collect()
541541

542542
# Get the new observations and update the data.
543-
new_y = eval_problem(candidates, base_function=base_function)
543+
new_y = eval_problem(candidates, base_function=base_function).to(**tkwargs)
544544

545545
if use_trust_region:
546546
old_length = trbo_state.length

0 commit comments

Comments
 (0)