pub struct StabilityTestConfig {
pub num_steps: usize,
pub tolerance: f32,
pub max_param_magnitude: f32,
pub min_progress: f32,
pub device: Arc<CpuDevice>,
}Expand description
Test configuration for numerical stability
Fields§
§num_steps: usizeNumber of optimization steps to run
tolerance: f32Tolerance for checking stability
max_param_magnitude: f32Maximum allowed parameter magnitude
min_progress: f32Minimum required progress (to avoid stagnation)
device: Arc<CpuDevice>Device to run tests on
Trait Implementations§
Source§impl Clone for StabilityTestConfig
impl Clone for StabilityTestConfig
Source§fn clone(&self) -> StabilityTestConfig
fn clone(&self) -> StabilityTestConfig
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 moreSource§impl Debug for StabilityTestConfig
impl Debug for StabilityTestConfig
Auto Trait Implementations§
impl !RefUnwindSafe for StabilityTestConfig
impl !UnwindSafe for StabilityTestConfig
impl Freeze for StabilityTestConfig
impl Send for StabilityTestConfig
impl Sync for StabilityTestConfig
impl Unpin for StabilityTestConfig
impl UnsafeUnpin for StabilityTestConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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