pub struct PatternAnalyzer { /* private fields */ }Expand description
Advanced pattern analyzer
Implementations§
Source§impl PatternAnalyzer
impl PatternAnalyzer
Sourcepub fn analyze_advanced_pattern(
&mut self,
triplets: &[(usize, usize, f32)],
shape: &Shape,
) -> TorshResult<AdvancedSparsityPattern>
pub fn analyze_advanced_pattern( &mut self, triplets: &[(usize, usize, f32)], shape: &Shape, ) -> TorshResult<AdvancedSparsityPattern>
Analyze sparsity pattern with advanced detection
Sourcepub fn compute_pattern_statistics(
&self,
triplets: &[(usize, usize, f32)],
shape: &Shape,
) -> TorshResult<PatternStatistics>
pub fn compute_pattern_statistics( &self, triplets: &[(usize, usize, f32)], shape: &Shape, ) -> TorshResult<PatternStatistics>
Compute detailed pattern statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatternAnalyzer
impl RefUnwindSafe for PatternAnalyzer
impl Send for PatternAnalyzer
impl Sync for PatternAnalyzer
impl Unpin for PatternAnalyzer
impl UnsafeUnpin for PatternAnalyzer
impl UnwindSafe for PatternAnalyzer
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
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