diff --git a/tests/utils.py b/tests/utils.py index 6169c3b6..788e5bef 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,6 +1,6 @@ -import os +import torch # Pass this as the first argument to init_hydra_config. DEFAULT_CONFIG_PATH = "lerobot/configs/default.yaml" -DEVICE = os.environ.get('LEROBOT_TESTS_DEVICE', "cuda") +DEVICE = "cuda" if torch.cuda.is_available() else "cpu"