Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Feb 7, 2024
1 parent 1490440 commit 3c5f2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dacapo/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def train_run(

run.model.eval()
# free up optimizer memory to allow larger validation blocks
# run.model = run.model.to(torch.device("cpu"))
run.model = run.model.to(torch.device("cpu"))
run.move_optimizer(torch.device("cpu"), empty_cuda_cache=True)

weights_store.store_weights(run, iteration_stats.iteration + 1)
Expand Down

0 comments on commit 3c5f2da

Please sign in to comment.