#[repr(i32)]pub enum ConvolutionMode {
CrossCorrelation = 0,
Convolution = 1,
}
Expand description
Describe the math definition for the conv op. The popular behavior is actually called cross-correlation in math, despite the operation is often referred as convolution. See cuDNN cudnnConvolutionMode_t.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ConvolutionMode
impl Clone for ConvolutionMode
Source§fn clone(&self) -> ConvolutionMode
fn clone(&self) -> ConvolutionMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConvolutionMode
impl Debug for ConvolutionMode
Source§impl Default for ConvolutionMode
impl Default for ConvolutionMode
Source§fn default() -> ConvolutionMode
fn default() -> ConvolutionMode
Returns the “default value” for a type. Read more
Source§impl From<ConvolutionMode> for i32
impl From<ConvolutionMode> for i32
Source§fn from(value: ConvolutionMode) -> i32
fn from(value: ConvolutionMode) -> i32
Converts to this type from the input type.
Source§impl Hash for ConvolutionMode
impl Hash for ConvolutionMode
Source§impl Ord for ConvolutionMode
impl Ord for ConvolutionMode
Source§fn cmp(&self, other: &ConvolutionMode) -> Ordering
fn cmp(&self, other: &ConvolutionMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConvolutionMode
impl PartialEq for ConvolutionMode
Source§impl PartialOrd for ConvolutionMode
impl PartialOrd for ConvolutionMode
impl Copy for ConvolutionMode
impl Eq for ConvolutionMode
impl StructuralPartialEq for ConvolutionMode
Auto Trait Implementations§
impl Freeze for ConvolutionMode
impl RefUnwindSafe for ConvolutionMode
impl Send for ConvolutionMode
impl Sync for ConvolutionMode
impl Unpin for ConvolutionMode
impl UnwindSafe for ConvolutionMode
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