pub struct VerifyResult {
pub passed: bool,
pub trials: u32,
pub positions_checked: usize,
pub positions_exact: usize,
pub max_diff: f32,
}Expand description
Result of an exact-match numerical correctness check.
Aggregated across trials by the driver: positions_checked and
positions_exact sum over every trial, while max_diff is the maximum
observed at any checked position. passed is true only if every
position at or below the threshold matched exactly across every trial
(and at least one position was checked).
Fields§
§passed: boolWhether the kernel passed (every checked position exact, ≥1 checked).
trials: u32Number of trials run.
positions_checked: usizeTotal output positions compared across all trials (reference ≤ threshold).
positions_exact: usizePositions that matched the reference exactly.
max_diff: f32Maximum absolute difference at checked positions. 0.0 for a correct
kernel.
Implementations§
Source§impl VerifyResult
impl VerifyResult
Sourcepub fn empty_aggregator() -> Self
pub fn empty_aggregator() -> Self
An empty aggregator to fold per-trial compare_outputs results into.
Sourcepub fn fold_trial(&mut self, trial: VerifyResult)
pub fn fold_trial(&mut self, trial: VerifyResult)
Fold a single-trial result into an aggregator.
Trait Implementations§
Source§impl Clone for VerifyResult
impl Clone for VerifyResult
Source§fn clone(&self) -> VerifyResult
fn clone(&self) -> VerifyResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more