forked from tangger/lerobot
Add DEVICE constant from LEROBOT_TESTS_DEVICE
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
import pytest
|
||||
from tensordict import TensorDict
|
||||
import torch
|
||||
@@ -8,7 +9,7 @@ from lerobot.common.envs.factory import make_env
|
||||
from lerobot.common.envs.pusht.env import PushtEnv
|
||||
from lerobot.common.envs.simxarm import SimxarmEnv
|
||||
|
||||
from .utils import init_config
|
||||
from .utils import DEVICE, init_config
|
||||
|
||||
|
||||
def print_spec_rollout(env):
|
||||
@@ -89,7 +90,7 @@ def test_pusht(from_pixels, pixels_only):
|
||||
],
|
||||
)
|
||||
def test_factory(env_name):
|
||||
cfg = init_config(overrides=[f"env={env_name}"])
|
||||
cfg = init_config(overrides=[f"env={env_name}", f"device={DEVICE}"])
|
||||
|
||||
offline_buffer = make_offline_buffer(cfg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user