#[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§
Source§impl ConvolutionMode
impl ConvolutionMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
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§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§impl PartialEq for ConvolutionMode
impl PartialEq for ConvolutionMode
Source§impl PartialOrd for ConvolutionMode
impl PartialOrd for ConvolutionMode
Source§impl TryFrom<i32> for ConvolutionMode
impl TryFrom<i32> for ConvolutionMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ConvolutionMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<ConvolutionMode, UnknownEnumValue>
Performs the conversion.
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)