pub enum QMatMul {
QTensor(Arc<QTensor>),
Tensor(Tensor),
TensorF16(Tensor),
}Variants§
Implementations§
Source§impl QMatMul
impl QMatMul
pub fn from_arc(qtensor: Arc<QTensor>) -> Result<Self>
pub fn from_qtensor(qtensor: QTensor) -> Result<Self>
pub fn dequantize_f16(&self) -> Result<Tensor>
pub fn forward_via_f16(&self, xs: &Tensor) -> Result<Tensor>
pub fn to_device(&self, dev: &Device) -> Result<Self>
pub fn size_in_bytes(&self) -> Result<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QMatMul
impl !RefUnwindSafe for QMatMul
impl Send for QMatMul
impl Sync for QMatMul
impl Unpin for QMatMul
impl !UnwindSafe for QMatMul
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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