Skip to main content

assert_close_vec1

Function assert_close_vec1 

Source
pub fn assert_close_vec1(
    actual: &[f32],
    expected: &[f32],
    abs_tol: f32,
    label: &str,
)
Expand description

Element-wise absolute-tolerance comparison for two flat f32 slices. Panics with a descriptive message on the first cell exceeding abs_tol. Used by tests whose precision baseline drifts by a few ULPs across cuDNN algorithm choices (e.g. conv backward grads where baracuda’s algorithm pick differs from a prior Fuel-internal cuDNN wrapper’s choice; both outputs are equally IEEE-754-valid).