Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 13, 2024
1 parent 99f2a7b commit d99a842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unittests/_helpers/testers.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def _select_rand_best_device() -> str:
nb_gpus = torch.cuda.device_count()
# todo: debug the eventual device checks/assets
# if nb_gpus > 1:
# return f"cuda:{randrange(nb_gpus)}" # noqa: S311
# return f"cuda:{randrange(nb_gpus)}"
if nb_gpus:
return "cuda"
return "cpu"
Expand Down

0 comments on commit d99a842

Please sign in to comment.