Skip to main content

Nvfp4MatmulSpec

Struct Nvfp4MatmulSpec 

Source
pub struct Nvfp4MatmulSpec<'a> {
    pub activation: Operand,
    pub packed: &'a [Operand],
    pub block_scales: &'a [Operand],
    pub tensor_scale: Operand,
    pub output: Operand,
    pub m: u32,
    pub n: u32,
    pub k: u32,
    pub epilogue: u32,
    pub weight_mode: u32,
}
Expand description

Specialization payload for native row-major NVFP4: activation, packed weights, block scales, tensor scale, output, then m, n, k, epilogue.

Fields§

§activation: Operand§packed: &'a [Operand]§block_scales: &'a [Operand]§tensor_scale: Operand§output: Operand§m: u32§n: u32§k: u32§epilogue: u32§weight_mode: u32

Implementations§

Source§

impl Nvfp4MatmulSpec<'_>

Source

pub fn words(&self) -> Vec<u32>

Auto Trait Implementations§

§

impl<'a> Freeze for Nvfp4MatmulSpec<'a>

§

impl<'a> RefUnwindSafe for Nvfp4MatmulSpec<'a>

§

impl<'a> Send for Nvfp4MatmulSpec<'a>

§

impl<'a> Sync for Nvfp4MatmulSpec<'a>

§

impl<'a> Unpin for Nvfp4MatmulSpec<'a>

§

impl<'a> UnsafeUnpin for Nvfp4MatmulSpec<'a>

§

impl<'a> UnwindSafe for Nvfp4MatmulSpec<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.