pub enum ConvAlgorithm {
ImplicitGemm,
Im2colGemm,
Winograd,
Direct,
FftConv,
}Expand description
Convolution algorithm selection.
Different algorithms offer different trade-offs between workspace memory and compute throughput. The optimal choice depends on tensor sizes, GPU architecture, and available workspace.
Variants§
ImplicitGemm
Implicit GEMM – low workspace, moderate speed.
Im2colGemm
Im2col followed by explicit GEMM – higher workspace, often fastest for medium-sized feature maps.
Winograd
Winograd transform – fastest for 3x3 kernels with stride 1, but requires workspace and may reduce numerical precision.
Direct
Direct convolution – no workspace, straightforward nested loops.
FftConv
FFT-based convolution – fastest for very large kernels.
Trait Implementations§
Source§impl Clone for ConvAlgorithm
impl Clone for ConvAlgorithm
Source§fn clone(&self) -> ConvAlgorithm
fn clone(&self) -> ConvAlgorithm
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 moreimpl Copy for ConvAlgorithm
Source§impl Debug for ConvAlgorithm
impl Debug for ConvAlgorithm
impl Eq for ConvAlgorithm
Source§impl Hash for ConvAlgorithm
impl Hash for ConvAlgorithm
Source§impl PartialEq for ConvAlgorithm
impl PartialEq for ConvAlgorithm
Source§fn eq(&self, other: &ConvAlgorithm) -> bool
fn eq(&self, other: &ConvAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConvAlgorithm
Auto Trait Implementations§
impl Freeze for ConvAlgorithm
impl RefUnwindSafe for ConvAlgorithm
impl Send for ConvAlgorithm
impl Sync for ConvAlgorithm
impl Unpin for ConvAlgorithm
impl UnsafeUnpin for ConvAlgorithm
impl UnwindSafe for ConvAlgorithm
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