pub struct AlgorithmicOptimizer { /* private fields */ }Expand description
Advanced algorithmic operations manager
Implementations§
Source§impl AlgorithmicOptimizer
impl AlgorithmicOptimizer
Sourcepub fn with_config(config: AlgorithmConfig) -> Self
pub fn with_config(config: AlgorithmConfig) -> Self
Create with custom configuration
Sourcepub fn optimized_matmul<T>(
&self,
a: &[T],
b: &[T],
c: &mut [T],
m: usize,
k: usize,
n: usize,
) -> Result<()>
pub fn optimized_matmul<T>( &self, a: &[T], b: &[T], c: &mut [T], m: usize, k: usize, n: usize, ) -> Result<()>
Optimized matrix multiplication with adaptive algorithm selection
Sourcepub fn optimized_conv2d<T>(
&self,
input: &[T],
kernel: &[T],
output: &mut [T],
input_h: usize,
input_w: usize,
kernel_h: usize,
kernel_w: usize,
stride: usize,
padding: usize,
) -> Result<()>
pub fn optimized_conv2d<T>( &self, input: &[T], kernel: &[T], output: &mut [T], input_h: usize, input_w: usize, kernel_h: usize, kernel_w: usize, stride: usize, padding: usize, ) -> Result<()>
Optimized convolution with advanced algorithms
Sourcepub fn execute_fused_operations<T>(
&self,
operations: &[FusedOperation<T>],
inputs: &[&[T]],
outputs: &mut [&mut [T]],
) -> Result<()>
pub fn execute_fused_operations<T>( &self, operations: &[FusedOperation<T>], inputs: &[&[T]], outputs: &mut [&mut [T]], ) -> Result<()>
Fused operation execution
Sourcepub fn get_performance_stats(&self) -> AlgorithmPerformanceStats
pub fn get_performance_stats(&self) -> AlgorithmPerformanceStats
Get algorithm performance statistics
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AlgorithmicOptimizer
impl RefUnwindSafe for AlgorithmicOptimizer
impl Send for AlgorithmicOptimizer
impl Sync for AlgorithmicOptimizer
impl Unpin for AlgorithmicOptimizer
impl UnsafeUnpin for AlgorithmicOptimizer
impl UnwindSafe for AlgorithmicOptimizer
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