pub struct ConvTransposeOptions<const N: usize> {
pub stride: [usize; N],
pub padding: [usize; N],
pub padding_out: [usize; N],
pub dilation: [usize; N],
pub groups: usize,
}Expand description
Transposed convolution options.
Fields§
§stride: [usize; N]Stride (non-zero).
padding: [usize; N]Padding.
padding_out: [usize; N]Padding out.
dilation: [usize; N]Dilation (non-zero).
groups: usizeGroups (non-zero).
Implementations§
Source§impl<const N: usize> ConvTransposeOptions<N>
impl<const N: usize> ConvTransposeOptions<N>
Sourcepub fn new(
stride: [usize; N],
padding: [usize; N],
padding_out: [usize; N],
dilation: [usize; N],
groups: usize,
) -> ConvTransposeOptions<N>
pub fn new( stride: [usize; N], padding: [usize; N], padding_out: [usize; N], dilation: [usize; N], groups: usize, ) -> ConvTransposeOptions<N>
Constructs a new ConvTransposeOptions.
Sourcepub fn try_with_output_size(
self,
kernel_size: [usize; N],
input_size: [usize; N],
output_size: [usize; N],
) -> Option<ConvTransposeOptions<N>>
pub fn try_with_output_size( self, kernel_size: [usize; N], input_size: [usize; N], output_size: [usize; N], ) -> Option<ConvTransposeOptions<N>>
Set output padding to produce the requested spatial extents.
Uses the native convolution geometry, without cropping or resampling.
Only padding_out changes; backend output-padding restrictions remain
those of the selected backend.
Sourcepub fn with_output_size(
self,
kernel_size: [usize; N],
input_size: [usize; N],
output_size: [usize; N],
) -> ConvTransposeOptions<N>
pub fn with_output_size( self, kernel_size: [usize; N], input_size: [usize; N], output_size: [usize; N], ) -> ConvTransposeOptions<N>
Set the requested spatial extents, panicking for invalid geometry.
Trait Implementations§
Source§impl<const N: usize> Clone for ConvTransposeOptions<N>
impl<const N: usize> Clone for ConvTransposeOptions<N>
Source§fn clone(&self) -> ConvTransposeOptions<N>
fn clone(&self) -> ConvTransposeOptions<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 ConvTransposeOptions<N>
impl<const N: usize> Debug for ConvTransposeOptions<N>
impl<const N: usize> Eq for ConvTransposeOptions<N>
Source§impl<const N: usize> Hash for ConvTransposeOptions<N>
impl<const N: usize> Hash for ConvTransposeOptions<N>
Source§impl<const N: usize> PartialEq for ConvTransposeOptions<N>
impl<const N: usize> PartialEq for ConvTransposeOptions<N>
impl<const N: usize> StructuralPartialEq for ConvTransposeOptions<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ConvTransposeOptions<N>
impl<const N: usize> RefUnwindSafe for ConvTransposeOptions<N>
impl<const N: usize> Send for ConvTransposeOptions<N>
impl<const N: usize> Sync for ConvTransposeOptions<N>
impl<const N: usize> Unpin for ConvTransposeOptions<N>
impl<const N: usize> UnsafeUnpin for ConvTransposeOptions<N>
impl<const N: usize> UnwindSafe for ConvTransposeOptions<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.