pub struct ConvPlan { /* private fields */ }Expand description
Prepared MLAS Float32 convolution parameters for one concrete NCHW shape.
Implementations§
Source§impl ConvPlan
impl ConvPlan
Sourcepub fn new(
batch_count: usize,
group_count: usize,
input_channels_per_group: usize,
input_shape: &[i64],
kernel_shape: &[i64],
dilation_shape: &[i64],
padding: &[i64],
stride_shape: &[i64],
output_shape: &[i64],
filter_count_per_group: usize,
) -> Option<Self>
pub fn new( batch_count: usize, group_count: usize, input_channels_per_group: usize, input_shape: &[i64], kernel_shape: &[i64], dilation_shape: &[i64], padding: &[i64], stride_shape: &[i64], output_shape: &[i64], filter_count_per_group: usize, ) -> Option<Self>
Prepare an N-dimensional NCHW convolution and return its scratch size.
Sourcepub fn working_buffer_elements(&self) -> usize
pub fn working_buffer_elements(&self) -> usize
Number of Float32 scratch elements required by Self::run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConvPlan
impl RefUnwindSafe for ConvPlan
impl Unpin for ConvPlan
impl UnsafeUnpin for ConvPlan
impl UnwindSafe for ConvPlan
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more