pub enum HostBuf {
F32(Vec<f32>),
Bytes(Vec<u8>),
}Expand description
One host-eval input: f32 activations, or raw bytes for a packed quant weight
(U8/I8 operands such as the GGUF weight of Op::DequantMatMul).
Variants§
Auto Trait Implementations§
impl Freeze for HostBuf
impl RefUnwindSafe for HostBuf
impl Send for HostBuf
impl Sync for HostBuf
impl Unpin for HostBuf
impl UnsafeUnpin for HostBuf
impl UnwindSafe for HostBuf
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> 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