Struct PaddedConvOptions
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ยง
ยงimpl<const N: usize> PaddedConvOptions<N>
impl<const N: usize> PaddedConvOptions<N>
pub 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.
pub fn is_asymmetric(&self) -> bool
pub fn is_asymmetric(&self) -> bool
Returns true if explicit asymmetric end padding is present.
Trait Implementationsยง
ยงimpl<const N: usize> Clone for PaddedConvOptions<N>
impl<const N: usize> Clone for PaddedConvOptions<N>
ยง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 moreยงimpl<const N: usize> Debug for PaddedConvOptions<N>
impl<const N: usize> Debug for PaddedConvOptions<N>
ยงimpl<const N: usize> From<ConvOptions<N>> for PaddedConvOptions<N>
impl<const N: usize> From<ConvOptions<N>> for PaddedConvOptions<N>
ยงfn from(options: ConvOptions<N>) -> PaddedConvOptions<N>
fn from(options: ConvOptions<N>) -> PaddedConvOptions<N>
Converts to this type from the input type.
ยงimpl<const N: usize> From<PaddedConvOptions<N>> for ConvOptions<N>
impl<const N: usize> From<PaddedConvOptions<N>> for ConvOptions<N>
ยง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,
ยงimpl<K, Q> Comparable<Q> for K
impl<K, Q> Comparable<Q> for K
ยงimpl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
ยงfn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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