zjowowen's picture
init space
079c32c
raw
history blame
234 Bytes
from ding.envs import BaseEnv, DingEnvWrapper
def env(cfg, seed_api=True, caller='collector', **kwargs) -> BaseEnv:
import gym
return DingEnvWrapper(gym.make(cfg.env_id, **kwargs), cfg=cfg, seed_api=seed_api, caller=caller)