pub struct RolloutBatch { /* private fields */ }Expand description
Time-major matrices retained by one RolloutBuffer.
Implementations§
Source§impl RolloutBatch
impl RolloutBatch
Sourcepub const fn observation(&self) -> &Matrix
pub const fn observation(&self) -> &Matrix
Return observations shaped [time, environments, ...observation_shape].
Sourcepub const fn next_value(&self) -> &Matrix
pub const fn next_value(&self) -> &Matrix
Return next values shaped [time, environments].
Sourcepub const fn old_log_probability(&self) -> &Matrix
pub const fn old_log_probability(&self) -> &Matrix
Return collection-policy log probabilities shaped [time, environments].
Sourcepub const fn terminated(&self) -> &Matrix
pub const fn terminated(&self) -> &Matrix
Return termination flags shaped [time, environments].
Sourcepub const fn valid(&self) -> &Matrix
pub const fn valid(&self) -> &Matrix
Return the slot-validity mask shaped [time, environments].
Auto Trait Implementations§
impl !RefUnwindSafe for RolloutBatch
impl !Send for RolloutBatch
impl !Sync for RolloutBatch
impl !UnwindSafe for RolloutBatch
impl Forget for RolloutBatch
impl Freeze for RolloutBatchwhere
*const RcInner<RefCell<RuntimeState>> is !null: Freeze,
PhantomData<RcInner<RefCell<RuntimeState>>>: Freeze,
*const RcInner<StorageInner> is !null: Freeze,
PhantomData<RcInner<StorageInner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
*const RcInner<MatrixSemantic> is !null: Freeze,
PhantomData<RcInner<MatrixSemantic>>: Freeze,
PhantomData<Rc<()>>: Freeze,
impl Move for RolloutBatch
impl Unpin for RolloutBatch
impl UnsafeUnpin for RolloutBatchwhere
*const RcInner<RefCell<RuntimeState>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<RuntimeState>>>: UnsafeUnpin,
*const RcInner<StorageInner> is !null: UnsafeUnpin,
PhantomData<RcInner<StorageInner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
*const RcInner<MatrixSemantic> is !null: UnsafeUnpin,
PhantomData<RcInner<MatrixSemantic>>: UnsafeUnpin,
PhantomData<Rc<()>>: UnsafeUnpin,
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