Struct border_core::core::base::Step[][src]

pub struct Step<E: Env> {
    pub act: E::Act,
    pub obs: E::Obs,
    pub reward: Vec<f32>,
    pub is_done: Vec<i8>,
    pub info: E::Info,
}
Expand description

Represents all information given at every step of agent-envieronment interaction. reward and is_done have the same length, the number of processes (environments).

Fields

act: E::Act

Action.

obs: E::Obs

Observation.

reward: Vec<f32>

Reward.

is_done: Vec<i8>

Flag denoting if episode is done.

info: E::Info

Information defined by user.

Implementations

Constructs a Step object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.