Table of Contents

Class DtypeObservationVector<TObs, TAct>

Namespace
Gym.Wrappers.Vector
Assembly
Gym.dll

Casts each sub-env's observation to a dtype (Gymnasium's vector DtypeObservation).

[PyName("DtypeObservation")]
public class DtypeObservationVector<TObs, TAct> : VectorizeTransformObservation<NDArray, TObs, TAct>, IVectorEnv, IDisposable

Type Parameters

TObs

The env's batched observation type.

TAct

The batched action type, passed through.

Inheritance
VectorWrapper<NDArray, TAct, TObs, TAct>
DtypeObservationVector<TObs, TAct>
Implements
Inherited Members
Extension Methods

Remarks

Constructors

DtypeObservationVector(VectorEnv<TObs, TAct>, object)

Wraps env.

public DtypeObservationVector(VectorEnv<TObs, TAct> env, object dtype)

Parameters

env VectorEnv<TObs, TAct>

The vector env, whose single space is an array space.

dtype object

The dtype, as DtypeObservation<TObs, TAct> takes it.

Exceptions

TypeError

Thrown for a space without arrays or a dtype that cannot be read.