Skip to main content

compare_tensors

Function compare_tensors 

Source
pub fn compare_tensors(
    name: &str,
    original: &[f32],
    reconstructed: &[f32],
) -> Result<TensorReport>
Expand description

Compares original against reconstructed element-wise, computing TensorReport metrics. Both slices must be the same length (the caller is responsible for shape bookkeeping).