Skip to content

Commit

Permalink
Bug fix for GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyaR committed Jun 6, 2022
1 parent 3999703 commit 2589297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ludwig/hyperopt/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def on_trainer_train_teardown(self, trainer, progress_tracker, save_path, is_coo
"use_gpu": use_gpu,
"resources_per_worker": {
"CPU": num_cpus,
"GPU": 1,
"GPU": 1 if use_gpu else 0,
},
}
hyperopt_dict["backend"].set_distributed_kwargs(**hvd_kwargs)
Expand Down

0 comments on commit 2589297

Please sign in to comment.