Skip to content

Commit

Permalink
Update omnisafe/utils/command_app.py
Browse files Browse the repository at this point in the history
Co-authored-by: Xuehai Pan <[email protected]>
  • Loading branch information
muchvo and XuehaiPan authored Mar 31, 2023
1 parent ad41e9e commit 83fa64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omnisafe/utils/command_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def benchmark(
avaliable_gpus = list(range(torch.cuda.device_count()))
gpu_id = list(range(*[int(i) for i in gpu_range.split(':')]))

if not set(gpu_id).issubset(set(avaliable_gpus)):
if not set(gpu_id).issubset(avaliable_gpus):
warnings.warn('The GPU ID is not available, use CPU instead.', stacklevel=1)
gpu_id = None

Expand Down

0 comments on commit 83fa64f

Please sign in to comment.