From d99a842efa4212bb52c95eb3acc10982e64c36dc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:57:50 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/unittests/_helpers/testers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unittests/_helpers/testers.py b/tests/unittests/_helpers/testers.py index a4842a4aa90..6259bbe9ae2 100644 --- a/tests/unittests/_helpers/testers.py +++ b/tests/unittests/_helpers/testers.py @@ -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"