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