pub enum HostValues {
F32(Vec<f32>),
U32(Vec<u32>),
I32(Vec<i32>),
U8(Vec<u8>),
}Expand description
Typed host values carried by worker-produced samples and batches.
The runtime and Matrix are !Send, so prefetch production happens on
host values; the consumer uploads a collated HostBatch on its own
thread. Variants cover the admitted dataset element types; F16 host
staging is not admitted because host readback never produces half values.
Variants§
F32(Vec<f32>)
F32 elements.
U32(Vec<u32>)
U32 elements.
I32(Vec<i32>)
I32 elements.
U8(Vec<u8>)
U8 elements.
Trait Implementations§
Source§impl Clone for HostValues
impl Clone for HostValues
Auto Trait Implementations§
impl Forget for HostValues
impl Freeze for HostValueswhere
*const u8 is !null: Freeze,
PhantomData<f32>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<i32>: Freeze,
PhantomData<u8>: Freeze,
impl Move for HostValues
impl RefUnwindSafe for HostValues
impl Send for HostValueswhere
RawVecInner: Send,
impl Sync for HostValueswhere
RawVecInner: Sync,
impl Unpin for HostValues
impl UnsafeUnpin for HostValueswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<i32>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for HostValueswhere
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