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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more