pub struct NmseReport {
pub op: String,
pub seed: u64,
pub cpu: Vec<f32>,
pub metal_nmse: Option<f64>,
pub cuda_nmse: Option<f64>,
}Expand description
Cross-backend comparison result.
cpu is the reference output. metal_nmse / cuda_nmse are None
on builds that don’t include that backend.
Fields§
§op: String§seed: u64§cpu: Vec<f32>§metal_nmse: Option<f64>§cuda_nmse: Option<f64>Implementations§
Source§impl NmseReport
impl NmseReport
Sourcepub fn within_tol(&self, tol: f64) -> bool
pub fn within_tol(&self, tol: f64) -> bool
True if every available accelerator matches CPU below tol.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NmseReport
impl RefUnwindSafe for NmseReport
impl Send for NmseReport
impl Sync for NmseReport
impl Unpin for NmseReport
impl UnsafeUnpin for NmseReport
impl UnwindSafe for NmseReport
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