pub struct HostBatch {
pub x: HostTensor,
pub y: Option<HostTensor>,
}Expand description
Collated host batch: [B, ...] tensors stacked along a new leading axis.
Fields§
§x: HostTensorBatched inputs.
y: Option<HostTensor>Batched labels, present iff every sample carried one.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for HostBatch
impl Freeze for HostBatchwhere
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
PhantomData<f32>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<i32>: Freeze,
PhantomData<u8>: Freeze,
impl Move for HostBatch
impl RefUnwindSafe for HostBatch
impl Send for HostBatchwhere
RawVecInner: Send,
impl Sync for HostBatchwhere
RawVecInner: Sync,
impl Unpin for HostBatch
impl UnsafeUnpin for HostBatchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<i32>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for HostBatchwhere
RawVecInner: 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