pub enum MatmulInputHandle<R: Runtime> {
Normal(TensorHandle<R>),
Quantized {
data: TensorHandle<R>,
scale: TensorHandle<R>,
shape: Vec<usize>,
scheme: QuantScheme,
},
}Variants§
Normal(TensorHandle<R>)
Quantized
Implementations§
Source§impl<R: Runtime> MatmulInputHandle<R>
impl<R: Runtime> MatmulInputHandle<R>
pub fn as_ref(&self) -> MatmulInputHandleRef<'_, R>
pub fn from_ref(handle: &MatmulInputHandleRef<'_, R>) -> Self
pub fn data(&self) -> &TensorHandle<R>
pub fn swap_dims(&mut self, dim0: usize, dim1: usize)
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for MatmulInputHandle<R>
impl<R> RefUnwindSafe for MatmulInputHandle<R>where
R: RefUnwindSafe,
impl<R> Send for MatmulInputHandle<R>
impl<R> Sync for MatmulInputHandle<R>
impl<R> Unpin for MatmulInputHandle<R>where
R: Unpin,
impl<R> UnwindSafe for MatmulInputHandle<R>where
R: 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