Tianshou/tianshou/env/__init__.py
Anas BELFADIL aba2d01d25
MultiDiscrete to discrete gym action space wrapper (#664)
Has been tested to work with DQN and a custom MultiDiscrete gym env.
2022-06-13 06:18:22 +08:00

30 lines
657 B
Python

"""Env package."""
from tianshou.env.gym_wrappers import ContinuousToDiscrete, MultiDiscreteToDiscrete
from tianshou.env.venv_wrappers import VectorEnvNormObs, VectorEnvWrapper
from tianshou.env.venvs import (
BaseVectorEnv,
DummyVectorEnv,
RayVectorEnv,
ShmemVectorEnv,
SubprocVectorEnv,
)
try:
from tianshou.env.pettingzoo_env import PettingZooEnv
except ImportError:
pass
__all__ = [
"BaseVectorEnv",
"DummyVectorEnv",
"SubprocVectorEnv",
"ShmemVectorEnv",
"RayVectorEnv",
"VectorEnvWrapper",
"VectorEnvNormObs",
"PettingZooEnv",
"ContinuousToDiscrete",
"MultiDiscreteToDiscrete",
]