pub struct ConvolutionConfig<M: GlobalConfig> { /* private fields */ }Implementations§
Source§impl<M: GlobalConfig> ConvolutionConfig<M>
 
impl<M: GlobalConfig> ConvolutionConfig<M>
pub fn new( matmul: M, kernel_size: &[u32], stride: &[u32], dilation: &[u32], padding: &[i32], dim: Dimensionality, num_stages: u32, ) -> Result<Self, MatmulSetupError>
pub fn to_matmul_config(self) -> M
Trait Implementations§
Source§impl<M: Clone + GlobalConfig> Clone for ConvolutionConfig<M>
 
impl<M: Clone + GlobalConfig> Clone for ConvolutionConfig<M>
Source§fn clone(&self) -> ConvolutionConfig<M>
 
fn clone(&self) -> ConvolutionConfig<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<M: GlobalConfig> ConvGemmConfig for ConvolutionConfig<M>
 
impl<M: GlobalConfig> ConvGemmConfig for ConvolutionConfig<M>
Source§fn convolution_params(&self) -> ConvolutionParams
 
fn convolution_params(&self) -> ConvolutionParams
The size of the convolution kernel at 
dimfn line_sizes(&self) -> MatmulLineSizes
fn check_spatial_bounds(&self) -> bool
Source§impl<M: Debug + GlobalConfig> Debug for ConvolutionConfig<M>
 
impl<M: Debug + GlobalConfig> Debug for ConvolutionConfig<M>
Source§impl<M: GlobalConfig> Deref for ConvolutionConfig<M>
 
impl<M: GlobalConfig> Deref for ConvolutionConfig<M>
Source§impl<M: GlobalConfig> GlobalConfig for ConvolutionConfig<M>
 
impl<M: GlobalConfig> GlobalConfig for ConvolutionConfig<M>
Source§type StageConfig = <M as GlobalConfig>::StageConfig
 
type StageConfig = <M as GlobalConfig>::StageConfig
Underlying Stage matmul config
fn stage_memory_config(&self, ident: MatmulIdent) -> StageMemoryConfig
Source§fn stage_config(&self) -> Self::StageConfig
 
fn stage_config(&self) -> Self::StageConfig
Convert itself to the underlying stage matmul config
Source§fn global_line_size(&self, ident: MatmulIdent) -> u32
 
fn global_line_size(&self, ident: MatmulIdent) -> u32
Returns the line size for the global memory corresponding to the given ident
Source§fn matrix_layout(&self, ident: MatmulIdent) -> MatrixLayout
 
fn matrix_layout(&self, ident: MatmulIdent) -> MatrixLayout
Returns the MatrixLayout for the given ident
Source§fn num_loading_planes(&self, ident: MatmulIdent) -> u32
 
fn num_loading_planes(&self, ident: MatmulIdent) -> u32
Returns the number of planes participating in loading 
identSource§fn check_row_bounds(&self, ident: MatmulIdent) -> bool
 
fn check_row_bounds(&self, ident: MatmulIdent) -> bool
Whether to check if accessing a row would exceed bounds.
Source§fn check_col_bounds(&self, ident: MatmulIdent) -> bool
 
fn check_col_bounds(&self, ident: MatmulIdent) -> bool
Whether to check if accessing a col would exceed bounds.
Source§fn check_k_bounds(&self) -> bool
 
fn check_k_bounds(&self) -> bool
Whether to check if accessing a col for lhs or row for rhs would exceed bounds.
Source§fn precompute_job(&self) -> bool
 
fn precompute_job(&self) -> bool
Whether to put common computations for loading tasks once before loop
Source§fn num_stages(&self, _ident: MatmulIdent) -> u32
 
fn num_stages(&self, _ident: MatmulIdent) -> u32
The number of stages in stage memory
Source§fn reader_mode(&self) -> ReaderMode
 
fn reader_mode(&self) -> ReaderMode
Whether to check reader is balanced in comptime or runtime. Read more
Source§fn tiling_scheme(&self) -> TilingScheme
 
fn tiling_scheme(&self) -> TilingScheme
Returns the TilingScheme
Source§fn event_loading_mode(&self, ident: MatmulIdent) -> EventLoadingMode
 
fn event_loading_mode(&self, ident: MatmulIdent) -> EventLoadingMode
Whether event loading is constrained to be ordered
Source§fn plane_role_config(&self) -> PlaneRoleConfig
 
fn plane_role_config(&self) -> PlaneRoleConfig
Indicates the specialization roles for the planes
Source§fn specialized_loading_sides(&self) -> SpecializedLoadingSides
 
fn specialized_loading_sides(&self) -> SpecializedLoadingSides
Indicates plane roles are associated to loading which tensor input
fn global_memory_config(&self, ident: MatmulIdent) -> GlobalMemoryConfig
Source§fn role_rule_config(&self) -> RoleRuleConfig
 
fn role_rule_config(&self) -> RoleRuleConfig
How to identify the role of the plane depending on its index
Source§impl<M: Hash + GlobalConfig> Hash for ConvolutionConfig<M>
 
impl<M: Hash + GlobalConfig> Hash for ConvolutionConfig<M>
Source§impl<M: PartialEq + GlobalConfig> PartialEq for ConvolutionConfig<M>
 
impl<M: PartialEq + GlobalConfig> PartialEq for ConvolutionConfig<M>
impl<M: Copy + GlobalConfig> Copy for ConvolutionConfig<M>
impl<M: Eq + GlobalConfig> Eq for ConvolutionConfig<M>
impl<M: GlobalConfig> StructuralPartialEq for ConvolutionConfig<M>
Auto Trait Implementations§
impl<M> Freeze for ConvolutionConfig<M>where
    M: Freeze,
impl<M> RefUnwindSafe for ConvolutionConfig<M>where
    M: RefUnwindSafe,
impl<M> Send for ConvolutionConfig<M>
impl<M> Sync for ConvolutionConfig<M>
impl<M> Unpin for ConvolutionConfig<M>where
    M: Unpin,
impl<M> UnwindSafe for ConvolutionConfig<M>where
    M: UnwindSafe,
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.