pub struct BackendDivergence {
pub device: Device,
pub max_abs: f32,
pub max_rel: f32,
pub worst_output: usize,
pub suspect: bool,
}Expand description
One backend’s worst divergence from the CPU oracle for a given graph run.
Fields§
§device: Device§max_abs: f32Largest |backend - cpu| over every output element.
max_rel: f32Largest |backend - cpu| / (|cpu| + 1e-6) over every output element.
worst_output: usizeIndex of the graph output that carried max_rel.
suspect: booltrue when max_rel exceeds the tolerance → likely a kernel bug, not
round-off. Investigate with the per-primitive parity tests.
Trait Implementations§
Source§impl Clone for BackendDivergence
impl Clone for BackendDivergence
Source§fn clone(&self) -> BackendDivergence
fn clone(&self) -> BackendDivergence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackendDivergence
impl RefUnwindSafe for BackendDivergence
impl Send for BackendDivergence
impl Sync for BackendDivergence
impl Unpin for BackendDivergence
impl UnsafeUnpin for BackendDivergence
impl UnwindSafe for BackendDivergence
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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