pub struct VerifyConfig {
pub threshold: f32,
pub trials: u32,
pub p_zero: f32,
}Expand description
Configuration for the exact-match numerical correctness protocol.
§Defaults
| Field | Default | Rationale |
|---|---|---|
threshold | 2048.0 | FP_BINARY_THRESHOLD — FP16 exact-integer ceiling |
trials | 16 | Enough random binary trials to catch systematic bugs |
p_zero | 0.7 | 70% zeros keeps accumulated sums below the threshold |
Fields§
§threshold: f32Bit-exact ceiling. Positions where the FP32 CPU reference exceeds this value are ignored (they may have lost floating-point exactness).
trials: u32Number of random binary-input trials to run.
p_zero: f32Probability of sampling 0.0 vs 1.0 for each input element. Higher
zero bias keeps accumulated sums below the threshold for larger
problem sizes.
Trait Implementations§
Source§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Source§fn clone(&self) -> VerifyConfig
fn clone(&self) -> VerifyConfig
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 moreimpl Copy for VerifyConfig
Source§impl Debug for VerifyConfig
impl Debug for VerifyConfig
Source§impl Default for VerifyConfig
impl Default for VerifyConfig
Source§impl PartialEq for VerifyConfig
impl PartialEq for VerifyConfig
impl StructuralPartialEq for VerifyConfig
Auto Trait Implementations§
impl Freeze for VerifyConfig
impl RefUnwindSafe for VerifyConfig
impl Send for VerifyConfig
impl Sync for VerifyConfig
impl Unpin for VerifyConfig
impl UnsafeUnpin for VerifyConfig
impl UnwindSafe for VerifyConfig
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