Class DtypeObservationVector<TObs, TAct>
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
TObsThe env's batched observation type.
TActThe batched action type, passed through.
- Inheritance
-
VectorWrapper<NDArray, TAct, TObs, TAct>VectorObservationWrapper<NDArray, TObs, TAct>VectorizeTransformObservation<NDArray, 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
envVectorEnv<TObs, TAct>The vector env, whose single space is an array space.
dtypeobjectThe dtype, as DtypeObservation<TObs, TAct> takes it.
Exceptions
- TypeError
Thrown for a space without arrays or a dtype that cannot be read.