Struct VectorListStepResult<TObs>
A vector step whose infos are one dict per sub-env (DictInfoToList<TObs, TAct>'s result).
public readonly record struct VectorListStepResult<TObs> : INDArrayCarrier, IEquatable<VectorListStepResult<TObs>>
Type Parameters
TObsThe batched observation type.
- Implements
-
IEquatable<VectorListStepResult<TObs>>
- Inherited Members
- Extension Methods
Constructors
VectorListStepResult(TObs, NDArray, NDArray, NDArray, IReadOnlyList<Info>)
A vector step whose infos are one dict per sub-env (DictInfoToList<TObs, TAct>'s result).
public VectorListStepResult(TObs Observations, NDArray Rewards, NDArray Terminations, NDArray Truncations, IReadOnlyList<Info> Infos)
Parameters
ObservationsTObsThe batched observations.
RewardsNDArrayThe rewards, float64.
TerminationsNDArrayWhich sub-envs terminated.
TruncationsNDArrayWhich sub-envs were truncated.
InfosIReadOnlyList<Info>The i-th sub-env's info at index i.
Properties
Infos
The i-th sub-env's info at index i.
public IReadOnlyList<Info> Infos { get; init; }
Property Value
Observations
The batched observations.
public TObs Observations { get; init; }
Property Value
- TObs
Rewards
The rewards, float64.
public NDArray Rewards { get; init; }
Property Value
Terminations
Which sub-envs terminated.
public NDArray Terminations { get; init; }
Property Value
Truncations
Which sub-envs were truncated.
public NDArray Truncations { get; init; }