pub trait BatchConfig:
Copy
+ Clone
+ Eq
+ PartialEq
+ Hash
+ Debug
+ Send
+ Sync
+ 'static {
type GlobalConfig: GlobalConfig;
// Required methods
fn global_config(&self) -> Self::GlobalConfig;
fn quantized(&self) -> bool;
fn cube_dim(&self) -> CubeDim;
fn line_sizes(&self) -> MatmulLineSizes;
fn hypercube_config(&self) -> HypercubeConfig;
fn can_yield_extra_cubes(&self) -> bool;
// Provided method
fn tiling_scheme(&self) -> TilingScheme { ... }
}
Expand description
Configuration for the batch matmul level.
Required Associated Types§
Sourcetype GlobalConfig: GlobalConfig
type GlobalConfig: GlobalConfig
Underlying Global matmul config
Required Methods§
Sourcefn global_config(&self) -> Self::GlobalConfig
fn global_config(&self) -> Self::GlobalConfig
Convert itself to the underlying global matmul config
Sourcefn line_sizes(&self) -> MatmulLineSizes
fn line_sizes(&self) -> MatmulLineSizes
Returns the line sizes for Lhs, Rhs and output
Sourcefn hypercube_config(&self) -> HypercubeConfig
fn hypercube_config(&self) -> HypercubeConfig
Returns the HypercubeConfig
Sourcefn can_yield_extra_cubes(&self) -> bool
fn can_yield_extra_cubes(&self) -> bool
Whether it may launch more cubes than the minimum required
Provided Methods§
Sourcefn tiling_scheme(&self) -> TilingScheme
fn tiling_scheme(&self) -> TilingScheme
Returns the TilingScheme
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.