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 kernel_size(&self, dim: u32) -> u32
fn kernel_size(&self, dim: u32) -> u32
The size of the convolution kernel at
dim
Source§fn dimensionality(&self) -> Dimensionality
fn dimensionality(&self) -> Dimensionality
The dimensionality of the kernel
fn line_sizes(&self) -> MatmulLineSizes
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
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<I: Into<Ident>>(&self, ident: I) -> u32
fn global_line_size<I: Into<Ident>>(&self, ident: I) -> u32
Returns the line size for the global memory corresponding to the given ident
Source§fn matrix_layout<I: Into<Ident>>(&self, ident: I) -> MatrixLayout
fn matrix_layout<I: Into<Ident>>(&self, ident: I) -> MatrixLayout
Returns the MatrixLayout for the given ident
Source§fn num_loading_planes<I: Into<Ident>>(&self, ident: I) -> u32
fn num_loading_planes<I: Into<Ident>>(&self, ident: I) -> u32
Returns the number of planes participating in loading
ident
Source§fn check_row_bounds<I: Into<Ident>>(&self, ident: I) -> bool
fn check_row_bounds<I: Into<Ident>>(&self, ident: I) -> bool
Whether to check if accessing a row would exceed bounds.
Source§fn check_col_bounds<I: Into<Ident>>(&self, ident: I) -> bool
fn check_col_bounds<I: Into<Ident>>(&self, ident: I) -> 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: InputIdent) -> u32
fn num_stages(&self, _ident: InputIdent) -> u32
The number of stages in stage memory
Source§fn loader_mode(&self) -> LoaderMode
fn loader_mode(&self) -> LoaderMode
Whether to check loader 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: InputIdent) -> EventLoadingMode
fn event_loading_mode(&self, ident: InputIdent) -> 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
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.