Table of Contents

Class ResizeObservationVector<TObs, TAct>

Namespace
Gym.Wrappers.Vector
Assembly
Gym.dll

Resizes each sub-env's image by OpenCV's area interpolation (Gymnasium's vector ResizeObservation).

[PyName("ResizeObservation")]
public class ResizeObservationVector<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>
ResizeObservationVector<TObs, TAct>
Implements
Inherited Members
Extension Methods

Remarks

Constructors

ResizeObservationVector(VectorEnv<TObs, TAct>, long[])

Wraps env.

public ResizeObservationVector(VectorEnv<TObs, TAct> env, long[] shape)

Parameters

env VectorEnv<TObs, TAct>

The vector env, whose single space is a uint8 image box.

shape long[]

The new (height, width).

Exceptions

TypeError

Thrown for a space that is not a Box.

ValueError

Thrown for a space or shape ResizeObservation<TObs, TAct> refuses.