Table of Contents

Class ClipActionVector<TObs, TAct>

Namespace
Gym.Wrappers.Vector
Assembly
Gym.dll

Clips each sub-env's action into the env's Box (Gymnasium's vector ClipAction).

[PyName("ClipAction")]
public class ClipActionVector<TObs, TAct> : VectorizeTransformAction<TObs, NDArray, TAct>, IVectorEnv, IDisposable

Type Parameters

TObs

The batched observation type, passed through.

TAct

The env's batched action type.

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

Remarks

Constructors

ClipActionVector(VectorEnv<TObs, TAct>)

Wraps env.

public ClipActionVector(VectorEnv<TObs, TAct> env)

Parameters

env VectorEnv<TObs, TAct>

The vector env, whose single action space is a Box.

Exceptions

TypeError

Thrown for a space that is not a Box.