pub struct Minibatch {
pub observations: Vec<f32>,
pub actions: Vec<i64>,
pub old_log_probs: Vec<f32>,
pub old_values: Vec<f32>,
pub advantages: Vec<f32>,
pub returns: Vec<f32>,
/* private fields */
}Expand description
Minibatch data for training
Contains a subset of rollout data arranged for efficient training.
Fields§
§observations: Vec<f32>Observations [batch_size * obs_dim]
actions: Vec<i64>Actions [batch_size]
old_log_probs: Vec<f32>Old log probabilities [batch_size]
old_values: Vec<f32>Old value estimates [batch_size]
advantages: Vec<f32>Advantages [batch_size]
returns: Vec<f32>Returns [batch_size]
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Minibatch
impl RefUnwindSafe for Minibatch
impl Send for Minibatch
impl Sync for Minibatch
impl Unpin for Minibatch
impl UnsafeUnpin for Minibatch
impl UnwindSafe for Minibatch
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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