in src/lib.rs [463:474]
fn test_rms_norm_no_bias() -> Result<()> {
let device = Device::new_cuda(0)?;
let x = Tensor::randn(0., 1., (4, 8), &device)?.to_dtype(DType::F32)?;
let g = Tensor::randn(0., 1., 8, &device)?.to_dtype(DType::F32)?;
let res = rms_norm(&x, &g, None, 1e-12)?;
let truth = layer_norm_truth(&x, &g, None, 1e-12, true)?;
assert_eq!(to_vec2_round(res, 3)?, to_vec2_round(truth, 3)?);
Ok(())
}