[][src]Enum tensorflow_proto::stream_executor::dnn::ConvolutionMode

#[repr(i32)]pub enum ConvolutionMode {
    CrossCorrelation,
    Convolution,
}

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

CrossCorrelation
Convolution

Implementations

impl ConvolutionMode[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of ConvolutionMode.

pub fn from_i32(value: i32) -> Option<ConvolutionMode>[src]

Converts an i32 to a ConvolutionMode, or None if value is not a valid variant.

Trait Implementations

impl Clone for ConvolutionMode[src]

impl Copy for ConvolutionMode[src]

impl Debug for ConvolutionMode[src]

impl Default for ConvolutionMode[src]

impl Eq for ConvolutionMode[src]

impl Hash for ConvolutionMode[src]

impl Ord for ConvolutionMode[src]

impl PartialEq<ConvolutionMode> for ConvolutionMode[src]

impl PartialOrd<ConvolutionMode> for ConvolutionMode[src]

impl StructuralEq for ConvolutionMode[src]

impl StructuralPartialEq for ConvolutionMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.