pub struct MatmulEpilogue {
pub alpha: f64,
pub beta: f64,
pub row_scale: Option<GpuTensorHandle>,
pub col_scale: Option<GpuTensorHandle>,
pub row_op: ScaleOp,
pub col_op: ScaleOp,
pub clamp_min: Option<f64>,
pub clamp_max: Option<f64>,
pub pow_exponent: Option<f64>,
pub diag_output: Option<GpuTensorHandle>,
}Fields§
§alpha: f64Scalar multiply applied to each output element.
beta: f64Scalar add applied to each output element after scaling.
row_scale: Option<GpuTensorHandle>Optional per-row scale (length m). When present, output[row, col] *= row_scale[row].
col_scale: Option<GpuTensorHandle>Optional per-column scale (length n). When present, output[row, col] *= col_scale[col].
row_op: ScaleOpRow scale operation (multiply or divide). Ignored when row_scale is None.
col_op: ScaleOpColumn scale operation (multiply or divide). Ignored when col_scale is None.
clamp_min: Option<f64>Optional lower clamp bound applied after scale/bias.
clamp_max: Option<f64>Optional upper clamp bound applied after scale/bias.
pow_exponent: Option<f64>Optional power exponent applied after clamp (final operation in the epilogue).
diag_output: Option<GpuTensorHandle>Optional output buffer for the diagonal of the result (length min(m, n)).
Implementations§
Trait Implementations§
Source§impl Clone for MatmulEpilogue
impl Clone for MatmulEpilogue
Source§fn clone(&self) -> MatmulEpilogue
fn clone(&self) -> MatmulEpilogue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatmulEpilogue
impl Debug for MatmulEpilogue
Source§impl<'de> Deserialize<'de> for MatmulEpilogue
impl<'de> Deserialize<'de> for MatmulEpilogue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MatmulEpilogue
impl PartialEq for MatmulEpilogue
Source§impl Serialize for MatmulEpilogue
impl Serialize for MatmulEpilogue
impl StructuralPartialEq for MatmulEpilogue
Auto Trait Implementations§
impl Freeze for MatmulEpilogue
impl RefUnwindSafe for MatmulEpilogue
impl Send for MatmulEpilogue
impl Sync for MatmulEpilogue
impl Unpin for MatmulEpilogue
impl UnwindSafe for MatmulEpilogue
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