Table of Contents

Class Wrapper<TObs, TAct>

Namespace
Gym.Envs
Assembly
Gym.dll

A wrapper that keeps its env's observation and action types (Wrapper[ObsType, ActType, ObsType, ActType]), the base of wrappers such as TimeLimit and OrderEnforcing.

public class Wrapper<TObs, TAct> : Wrapper<TObs, TAct, TObs, TAct>, IDynamicAttributes, IWrapper, IEnv, IDisposable

Type Parameters

TObs

The observation type of the env and the wrapper.

TAct

The action type of the env and the wrapper.

Inheritance
Env<TObs, TAct>
Wrapper<TObs, TAct, TObs, TAct>
Wrapper<TObs, TAct>
Implements
Derived
Inherited Members
Extension Methods

Constructors

Wrapper(Env<TObs, TAct>)

Wraps env.

public Wrapper(Env<TObs, TAct> env)

Parameters

env Env<TObs, TAct>

The env to wrap.

Exceptions

TypeError

Thrown when env is null.