pub struct OpParams {
pub weight_ptr: u64,
pub gamma_ptr: u64,
pub scalar: f32,
pub int_param: u32,
}Expand description
Operation-specific parameters.
Fields§
§weight_ptr: u64Weight pointer (for MulMat: quantized weights on device)
gamma_ptr: u64Normalization gamma pointer (for RmsNorm)
scalar: f32Scalar parameter (epsilon for RmsNorm, etc.)
int_param: u32Integer parameter (position for RoPE, etc.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpParams
impl RefUnwindSafe for OpParams
impl Send for OpParams
impl Sync for OpParams
impl Unpin for OpParams
impl UnsafeUnpin for OpParams
impl UnwindSafe for OpParams
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