pub struct BatchOutMinimal<'a> {
pub obs: &'a mut [i32],
pub masks: &'a mut [u8],
pub rewards: &'a mut [f32],
pub terminated: &'a mut [bool],
pub truncated: &'a mut [bool],
pub actor: &'a mut [i8],
pub decision_kind: &'a mut [i8],
pub decision_id: &'a mut [u32],
pub engine_status: &'a mut [u8],
pub spec_hash: &'a mut [u64],
}Expand description
Minimal RL batch output, filled in-place.
Fields§
§obs: &'a mut [i32]Observation buffer (len = num_envs * OBS_LEN).
masks: &'a mut [u8]Action mask buffer (len = num_envs * ACTION_SPACE_SIZE).
rewards: &'a mut [f32]Reward per env (len = num_envs).
terminated: &'a mut [bool]Terminal flags per env (len = num_envs).
truncated: &'a mut [bool]Truncation flags per env (len = num_envs).
actor: &'a mut [i8]Actor perspective per env (len = num_envs).
decision_kind: &'a mut [i8]Decision kind per env (len = num_envs).
decision_id: &'a mut [u32]Decision id per env (len = num_envs).
engine_status: &'a mut [u8]Engine error code per env (len = num_envs).
spec_hash: &'a mut [u64]Encoding spec hash per env (len = num_envs).
Auto Trait Implementations§
impl<'a> Freeze for BatchOutMinimal<'a>
impl<'a> RefUnwindSafe for BatchOutMinimal<'a>
impl<'a> Send for BatchOutMinimal<'a>
impl<'a> Sync for BatchOutMinimal<'a>
impl<'a> Unpin for BatchOutMinimal<'a>
impl<'a> !UnwindSafe for BatchOutMinimal<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more