pub struct DeformConvOptions<const N: usize> {
pub stride: [usize; N],
pub padding: [usize; N],
pub dilation: [usize; N],
pub weight_groups: usize,
pub offset_groups: usize,
pub padding_end: Option<[usize; N]>,
}Expand description
Convolution options.
Fields§
§stride: [usize; N]Stride (non-zero).
padding: [usize; N]Padding.
dilation: [usize; N]Dilation (non-zero).
weight_groups: usizeWeight Groups (non-zero).
offset_groups: usizeOffset Groups (non-zero).
padding_end: Option<[usize; N]>End padding per dimension, or None to use symmetric padding.
Implementations§
Source§impl<const N: usize> DeformConvOptions<N>
impl<const N: usize> DeformConvOptions<N>
Sourcepub fn new(
stride: [usize; N],
padding: [usize; N],
dilation: [usize; N],
weight_groups: usize,
offset_groups: usize,
) -> DeformConvOptions<N>
pub fn new( stride: [usize; N], padding: [usize; N], dilation: [usize; N], weight_groups: usize, offset_groups: usize, ) -> DeformConvOptions<N>
Constructs a new DeformConvOptions.
Sourcepub fn with_padding_end(self, padding_end: [usize; N]) -> DeformConvOptions<N>
pub fn with_padding_end(self, padding_end: [usize; N]) -> DeformConvOptions<N>
Set end padding while retaining padding as the sampling grid’s start padding.
Trait Implementations§
Source§impl<const N: usize> Clone for DeformConvOptions<N>
impl<const N: usize> Clone for DeformConvOptions<N>
Source§fn clone(&self) -> DeformConvOptions<N>
fn clone(&self) -> DeformConvOptions<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 DeformConvOptions<N>
impl<const N: usize> Debug for DeformConvOptions<N>
impl<const N: usize> Eq for DeformConvOptions<N>
Source§impl<const N: usize> Hash for DeformConvOptions<N>
impl<const N: usize> Hash for DeformConvOptions<N>
Source§impl<const N: usize> PartialEq for DeformConvOptions<N>
impl<const N: usize> PartialEq for DeformConvOptions<N>
impl<const N: usize> StructuralPartialEq for DeformConvOptions<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for DeformConvOptions<N>
impl<const N: usize> RefUnwindSafe for DeformConvOptions<N>
impl<const N: usize> Send for DeformConvOptions<N>
impl<const N: usize> Sync for DeformConvOptions<N>
impl<const N: usize> Unpin for DeformConvOptions<N>
impl<const N: usize> UnsafeUnpin for DeformConvOptions<N>
impl<const N: usize> UnwindSafe for DeformConvOptions<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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.