Auto set device
This commit is contained in:
parent
75d34548a5
commit
a870907266
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue