oa::ml::RolloutTransition

One vector-environment transition whose values remain device-resident.

StRust public API

Declaration

pub struct RolloutTransition { /* private fields */ }
Public Rust declaration.

Public Methods

pub const fn observation(&self) -> &Matrix
pub const fn action(&self) -> &Matrix
pub const fn reward(&self) -> &Matrix
pub const fn value(&self) -> &Matrix
pub const fn next_value(&self) -> &Matrix
pub const fn log_probability(&self) -> &Matrix
pub const fn terminated(&self) -> &Matrix
pub const fn truncated(&self) -> &Matrix
fn clone(&self) -> RolloutTransition

Associated Functions

pub fn new( observation: Matrix, action: Matrix, reward: Matrix, value: Matrix, next_value: Matrix, log_probability: Matrix, terminated: Matrix, truncated: Matrix, ) -> Self

Public Method Documentation

pub const fn observation( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn action( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn reward( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn value( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn next_value( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn log_probability( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn terminated( &self ) -> &Matrix
No public source comment is attached to this declaration.
pub const fn truncated( &self ) -> &Matrix
No public source comment is attached to this declaration.
fn clone( &self ) -> RolloutTransition
No public source comment is attached to this declaration.
pub fn new( observation: Matrix, action: Matrix, reward: Matrix, value: Matrix, next_value: Matrix, log_probability: Matrix, terminated: Matrix, truncated: Matrix ) -> Self
No public source comment is attached to this declaration.