sgoodfriend's picture
DQN playing BreakoutNoFrameskip-v4 from https://github.com/sgoodfriend/rl-algo-impls/tree/983cb75e43e51cf4ef57f177194ab9a4a1a8808b
923ccaf
raw
history blame contribute delete
864 Bytes
from typing import TypeVar
from gym_microrts.envs.vec_env import (
MicroRTSGridModeSharedMemVecEnv,
MicroRTSGridModeVecEnv,
)
MicroRTSGridModeVecEnvCompatSelf = TypeVar(
"MicroRTSGridModeVecEnvCompatSelf", bound="MicroRTSGridModeVecEnvCompat"
)
class MicroRTSGridModeVecEnvCompat(MicroRTSGridModeVecEnv):
@property
def unwrapped(
self: MicroRTSGridModeVecEnvCompatSelf,
) -> MicroRTSGridModeVecEnvCompatSelf:
return self
MicroRTSGridModeSharedMemVecEnvCompatSelf = TypeVar(
"MicroRTSGridModeSharedMemVecEnvCompatSelf",
bound="MicroRTSGridModeSharedMemVecEnvCompat",
)
class MicroRTSGridModeSharedMemVecEnvCompat(MicroRTSGridModeSharedMemVecEnv):
@property
def unwrapped(
self: MicroRTSGridModeSharedMemVecEnvCompatSelf,
) -> MicroRTSGridModeSharedMemVecEnvCompatSelf:
return self