pub struct GradientCoverageReport {
pub operations: HashMap<String, OperationGradientInfo>,
pub timestamp: SystemTime,
pub total_operations: usize,
pub complete_operations: usize,
pub partial_operations: usize,
pub missing_operations: usize,
pub not_applicable_operations: usize,
}Expand description
Comprehensive gradient coverage report
Fields§
§operations: HashMap<String, OperationGradientInfo>Map of operation name to gradient info
timestamp: SystemTimeTimestamp of audit
total_operations: usizeTotal operations audited
complete_operations: usizeOperations with complete gradient support
partial_operations: usizeOperations with partial gradient support
missing_operations: usizeOperations with no gradient support
not_applicable_operations: usizeOperations that don’t need gradients
Implementations§
Source§impl GradientCoverageReport
impl GradientCoverageReport
pub fn new() -> Self
Sourcepub fn overall_coverage(&self) -> f64
pub fn overall_coverage(&self) -> f64
Calculate overall coverage percentage
Sourcepub fn operations_by_status(&self, status: GradientStatus) -> Vec<String>
pub fn operations_by_status(&self, status: GradientStatus) -> Vec<String>
Get operations by status
Sourcepub fn operations_by_category(&self, category: OperationCategory) -> Vec<String>
pub fn operations_by_category(&self, category: OperationCategory) -> Vec<String>
Get operations by category
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print detailed coverage summary
Sourcepub fn print_operation_detail(&self, operation: &str)
pub fn print_operation_detail(&self, operation: &str)
Print detailed report for a specific operation
Trait Implementations§
Source§impl Clone for GradientCoverageReport
impl Clone for GradientCoverageReport
Source§impl Debug for GradientCoverageReport
impl Debug for GradientCoverageReport
Auto Trait Implementations§
impl Freeze for GradientCoverageReport
impl RefUnwindSafe for GradientCoverageReport
impl Send for GradientCoverageReport
impl Sync for GradientCoverageReport
impl Unpin for GradientCoverageReport
impl UnsafeUnpin for GradientCoverageReport
impl UnwindSafe for GradientCoverageReport
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