pub struct MaskHyperMatmulCompiled {
pub num_masks: usize,
pub q8: usize,
pub spat: usize,
/* private fields */
}Expand description
masks = hyper_in @ up2 with hyper_in [num_masks, q8], up2 [q8, spat] NCHW-flat.
Fields§
§num_masks: usize§q8: usize§spat: usizeImplementations§
Source§impl MaskHyperMatmulCompiled
impl MaskHyperMatmulCompiled
pub fn compile( num_masks: usize, q8: usize, grid: usize, device: Device, ) -> Result<MaskHyperMatmulCompiled, Error>
pub fn compile_with_profile( num_masks: usize, q8: usize, grid: usize, device: Device, profile: &CompileProfile, ) -> Result<MaskHyperMatmulCompiled, Error>
pub fn run( &mut self, hyper_in: &[f32], up2: &[f32], masks_out: &mut [f32], ) -> Result<(), Error>
Auto Trait Implementations§
impl !RefUnwindSafe for MaskHyperMatmulCompiled
impl !Sync for MaskHyperMatmulCompiled
impl !UnwindSafe for MaskHyperMatmulCompiled
impl Freeze for MaskHyperMatmulCompiled
impl Send for MaskHyperMatmulCompiled
impl Unpin for MaskHyperMatmulCompiled
impl UnsafeUnpin for MaskHyperMatmulCompiled
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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