pub struct GradientCoverageAuditor { /* private fields */ }Expand description
Gradient coverage auditor
Implementations§
Source§impl GradientCoverageAuditor
impl GradientCoverageAuditor
Sourcepub fn register_gradient(&self, operation: &str)
pub fn register_gradient(&self, operation: &str)
Register an operation as having gradient support
Sourcepub fn register_non_differentiable(&self, operation: &str)
pub fn register_non_differentiable(&self, operation: &str)
Register an operation as non-differentiable
Sourcepub fn has_gradient(&self, operation: &str) -> bool
pub fn has_gradient(&self, operation: &str) -> bool
Check if an operation has gradient support
Sourcepub fn is_non_differentiable(&self, operation: &str) -> bool
pub fn is_non_differentiable(&self, operation: &str) -> bool
Check if an operation is non-differentiable
Sourcepub fn audit_all(&self) -> GradientCoverageReport
pub fn audit_all(&self) -> GradientCoverageReport
Audit gradient coverage for all operations
Sourcepub fn audit_operation(&self, operation: &str) -> OperationGradientInfo
pub fn audit_operation(&self, operation: &str) -> OperationGradientInfo
Audit gradient coverage for a specific operation
Sourcepub fn set_config(&mut self, config: GradientTestConfig)
pub fn set_config(&mut self, config: GradientTestConfig)
Set test configuration
Sourcepub fn get_config(&self) -> &GradientTestConfig
pub fn get_config(&self) -> &GradientTestConfig
Get test configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GradientCoverageAuditor
impl RefUnwindSafe for GradientCoverageAuditor
impl Send for GradientCoverageAuditor
impl Sync for GradientCoverageAuditor
impl Unpin for GradientCoverageAuditor
impl UnsafeUnpin for GradientCoverageAuditor
impl UnwindSafe for GradientCoverageAuditor
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> 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