Skip to content

Commit

Permalink
move import
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Apr 18, 2024
1 parent daf8add commit 8fe5e08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarl/environments/meltingpot/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from torchrl.data import CompositeSpec
from torchrl.envs import DoubleToFloat, DTypeCastTransform, EnvBase, Transform
from torchrl.envs.libs.meltingpot import MeltingpotEnv

from benchmarl.environments.common import Task
from benchmarl.utils import DEVICE_TYPING
Expand All @@ -29,6 +28,8 @@ def get_env_fun(
seed: Optional[int],
device: DEVICE_TYPING,
) -> Callable[[], EnvBase]:
from torchrl.envs.libs.meltingpot import MeltingpotEnv

return lambda: MeltingpotEnv(
substrate=self.name.lower(),
categorical_actions=True,
Expand Down

0 comments on commit 8fe5e08

Please sign in to comment.