pub struct ConvolutionProblem {Show 20 fields
pub m: usize,
pub n: usize,
pub k: usize,
pub lhs_strides: Vec<usize>,
pub rhs_strides: Vec<usize>,
pub lhs_layout: MatrixLayout,
pub rhs_layout: MatrixLayout,
pub kernel_size: Vec<u32>,
pub stride: Vec<u32>,
pub padding: Vec<i32>,
pub dilation: Vec<u32>,
pub batches: usize,
pub channels: usize,
pub out_channels: usize,
pub in_shape: Vec<usize>,
pub out_shape: Vec<usize>,
pub padded_channels: usize,
pub operation: ConvolutionOperation,
pub dimensionality: Dimensionality,
pub global_dtypes: MatmulGlobalElems,
}Expand description
Description of a matmul problem to solve, regardless of actual data
Fields§
§m: usize§n: usize§k: usize§lhs_strides: Vec<usize>§rhs_strides: Vec<usize>§lhs_layout: MatrixLayout§rhs_layout: MatrixLayout§kernel_size: Vec<u32>§stride: Vec<u32>§padding: Vec<i32>§dilation: Vec<u32>§batches: usize§channels: usize§out_channels: usize§in_shape: Vec<usize>§out_shape: Vec<usize>§padded_channels: usizeChannels after applying loader-specific padding
operation: ConvolutionOperation§dimensionality: Dimensionality§global_dtypes: MatmulGlobalElemsImplementations§
Source§impl ConvolutionProblem
impl ConvolutionProblem
pub fn as_matmul_problem(&self) -> MatmulProblem
pub fn should_check_channel(&self) -> bool
pub fn should_check_spatial_bounds(&self) -> bool
Trait Implementations§
Source§impl Clone for ConvolutionProblem
impl Clone for ConvolutionProblem
Source§fn clone(&self) -> ConvolutionProblem
fn clone(&self) -> ConvolutionProblem
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 moreAuto Trait Implementations§
impl Freeze for ConvolutionProblem
impl RefUnwindSafe for ConvolutionProblem
impl Send for ConvolutionProblem
impl Sync for ConvolutionProblem
impl Unpin for ConvolutionProblem
impl UnwindSafe for ConvolutionProblem
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