matrpo/trainer/matrpo.py
def make_vec_env(self, scenario_id, seed, num_env, logger_dir, reward_scale, force_dummy, info_keywords):
        """
        Create a wrapped, monitored SubprocVecEnv for Atari and MuJoCo.
        """
        mpi_rank = MPI.COMM_WORLD.Get_rank() if MPI else 0
        seed = seed + 10000 * mpi_rank if seed is not None else None
        def make_thunk(rank, initializer=None):
            return lambda: self.make_env(
                scenario_id,
                seed,
                logger_dir,
                reward_scale,
                info_keywords,
                mpi_rank=mpi_rank,
                subrank=rank)

        if not force_dummy and num_env > 1:
            return SubprocVecEnv([make_thunk(i) for i in range(num_env)])
        else:
            return make_thunk(0)()

        Create a wrapped, monitored SubprocVecEnv for Atari and MuJoCo.
        
Create a wrapped, monitored SubprocVecEnv for Atari and MuJoCo.
Create a wrapped monitored SubprocVecEnv for Atari and MuJoCo .
def make_vec_env(self, scenario_id, seed, num_env, logger_dir, reward_scale, force_dummy, info_keywords):
        mpi_rank = MPI.COMM_WORLD.Get_rank() if MPI else 0
        seed = seed + 10000 * mpi_rank if seed is not None else None
        def make_thunk(rank, initializer=None):
            return lambda: self.make_env(
                scenario_id,
                seed,
                logger_dir,
                reward_scale,
                info_keywords,
                mpi_rank=mpi_rank,
                subrank=rank)
        if not force_dummy and num_env > 1:
            return SubprocVecEnv([make_thunk(i) for i in range(num_env)])
        else:
            return make_thunk(0)()
def make_vec_env ( self , scenario_id , seed , num_env , logger_dir , reward_scale , force_dummy , info_keywords ) : mpi_rank = MPI . COMM_WORLD . Get_rank ( ) if MPI else 0 seed = seed + 10000 * mpi_rank if seed is not None else None def make_thunk ( rank , initializer = None ) : return lambda : self . make_env ( scenario_id , seed , logger_dir , reward_scale , info_keywords , mpi_rank = mpi_rank , subrank = rank ) if not force_dummy and num_env > 1 : return SubprocVecEnv ( [ make_thunk ( i ) for i in range ( num_env ) ] ) else : return make_thunk ( 0 ) ( )
Create a wrapped, monitored SubprocVecEnv for Atari and MuJoCo.
Create a wrapped monitored SubprocVecEnv for Atari and MuJoCo .
"""
        Create a wrapped, monitored SubprocVecEnv for Atari and MuJoCo.
        """
self
scenario_id
seed
num_env
logger_dir
reward_scale
force_dummy
info_keywords