pub struct TransitionBatch<B: Backend, SB, AB> {
pub states: SB,
pub next_states: SB,
pub actions: AB,
pub rewards: Tensor<B, 2>,
pub dones: Tensor<B, 2>,
}Expand description
A batch of transitions.
Fields§
§states: SBBatched initial states.
next_states: SBBatched resulting states.
actions: ABBatched actions.
rewards: Tensor<B, 2>Batched rewards.
dones: Tensor<B, 2>Batched flags for terminal states.
Auto Trait Implementations§
impl<B, SB, AB> Freeze for TransitionBatch<B, SB, AB>where
SB: Freeze,
AB: Freeze,
<B as Backend>::FloatTensorPrimitive: Freeze,
<B as Backend>::QuantizedTensorPrimitive: Freeze,
impl<B, SB, AB> RefUnwindSafe for TransitionBatch<B, SB, AB>where
SB: RefUnwindSafe,
AB: RefUnwindSafe,
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B, SB, AB> Send for TransitionBatch<B, SB, AB>
impl<B, SB, AB> Sync for TransitionBatch<B, SB, AB>
impl<B, SB, AB> Unpin for TransitionBatch<B, SB, AB>where
SB: Unpin,
AB: Unpin,
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
impl<B, SB, AB> UnsafeUnpin for TransitionBatch<B, SB, AB>where
SB: UnsafeUnpin,
AB: UnsafeUnpin,
<B as Backend>::FloatTensorPrimitive: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive: UnsafeUnpin,
impl<B, SB, AB> UnwindSafe for TransitionBatch<B, SB, AB>where
SB: UnwindSafe,
AB: UnwindSafe,
<B as Backend>::FloatTensorPrimitive: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: UnwindSafe,
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