oa::ml::matrix::rms_norm_gated_backward

Compute all gated RMS normalization adjoints explicitly. Errors Returns an error for an incompatible output gradient or forward contract, or when runtime recording fails.

FnRust public API

Function Documentation

pub fn rms_norm_gated_backward( input: &Matrix, weight: &Matrix, bias: Option<&Matrix>, gate: &Matrix, output_gradient: &Matrix, epsilon: f32 ) -> Result<RmsNormGatedBackward>
Compute all gated RMS normalization adjoints explicitly. Errors Returns an error for an incompatible output gradient or forward contract, or when runtime recording fails.