Skip to content

Commit a901064

Browse files
author
Vincent Moens
committed
[Test] Fix warnings in SOTA tests
ghstack-source-id: c79223b Pull Request resolved: #2710
1 parent b000685 commit a901064

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/unittest/linux_sota/scripts/run_all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export SDL_VIDEODRIVER=dummy
7575
export MUJOCO_GL=egl
7676
export PYOPENGL_PLATFORM=egl
7777
export LAZY_LEGACY_OP=False
78+
export COMPOSITE_LP_AGGREGATE=0
7879

7980
conda env config vars set MUJOCO_PY_MUJOCO_PATH=$root_dir/.mujoco/mujoco210 \
8081
DISPLAY=unix:0.0 \

.github/unittest/linux_sota/scripts/test_sota.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
from pathlib import Path
88

99
import pytest
10+
from tensordict.nn import composite_lp_aggregate
11+
12+
# Check that we're using the new behavior
13+
assert (
14+
not composite_lp_aggregate()
15+
), "Composite LP must be set to False. Run this test with COMPOSITE_LP_AGGREGATE=0"
1016

1117
commands = {
1218
"dt": """python sota-implementations/decision_transformer/dt.py \

0 commit comments

Comments
 (0)