pub struct PaddedConvOptions<const N: usize> {
pub options: ConvOptions<N>,
pub padding_end: Option<[usize; N]>,
}👎Deprecated since 0.22.0:
Use ConvOptions::new_with_padding instead
Expand description
Convolution options with optional asymmetric end padding.
Deprecated compatibility wrapper for the convolution options API shipped in
Burn 0.22. Use ConvOptions::new_with_padding instead.
Fields§
§options: ConvOptions<N>👎Deprecated since 0.22.0:
Use ConvOptions::new_with_padding instead
The underlying convolution options.
padding_end: Option<[usize; N]>👎Deprecated since 0.22.0:
Use ConvOptions::new_with_padding instead
Padding at the end of each spatial dimension.
When None, the padding stored in Self::options is used unchanged.
Implementations§
Source§impl<const N: usize> PaddedConvOptions<N>
impl<const N: usize> PaddedConvOptions<N>
Sourcepub fn asymmetric(
stride: [usize; N],
padding_begin: [usize; N],
padding_end: [usize; N],
dilation: [usize; N],
groups: usize,
) -> PaddedConvOptions<N>
pub fn asymmetric( stride: [usize; N], padding_begin: [usize; N], padding_end: [usize; N], dilation: [usize; N], groups: usize, ) -> PaddedConvOptions<N>
Creates options with explicit begin and end padding.
Sourcepub fn is_asymmetric(&self) -> bool
pub fn is_asymmetric(&self) -> bool
Returns true if explicit asymmetric end padding is present.
Trait Implementations§
Source§impl<const N: usize> Clone for PaddedConvOptions<N>
impl<const N: usize> Clone for PaddedConvOptions<N>
Source§fn clone(&self) -> PaddedConvOptions<N>
fn clone(&self) -> PaddedConvOptions<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const N: usize> Debug for PaddedConvOptions<N>
impl<const N: usize> Debug for PaddedConvOptions<N>
Source§impl<const N: usize> From<ConvOptions<N>> for PaddedConvOptions<N>
impl<const N: usize> From<ConvOptions<N>> for PaddedConvOptions<N>
Source§fn from(options: ConvOptions<N>) -> PaddedConvOptions<N>
fn from(options: ConvOptions<N>) -> PaddedConvOptions<N>
Converts to this type from the input type.
Source§impl<const N: usize> From<PaddedConvOptions<N>> for ConvOptions<N>
impl<const N: usize> From<PaddedConvOptions<N>> for ConvOptions<N>
Source§fn from(value: PaddedConvOptions<N>) -> ConvOptions<N>
fn from(value: PaddedConvOptions<N>) -> ConvOptions<N>
Converts to this type from the input type.
Auto Trait Implementations§
impl<const N: usize> Freeze for PaddedConvOptions<N>
impl<const N: usize> RefUnwindSafe for PaddedConvOptions<N>
impl<const N: usize> Send for PaddedConvOptions<N>
impl<const N: usize> Sync for PaddedConvOptions<N>
impl<const N: usize> Unpin for PaddedConvOptions<N>
impl<const N: usize> UnsafeUnpin for PaddedConvOptions<N>
impl<const N: usize> UnwindSafe for PaddedConvOptions<N>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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