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

#[repr(i32)]pub enum ActivationMode {
    KNone,
    KSigmoid,
    KRelu,
    KRelu6,
    KReluX,
    KTanh,
    KBandPass,
}

Describes a kind of non-linearity (threshold-like mathematical function).

Variants

KNone
KSigmoid
KRelu

Rectified linear activation: f(x) = x < 0 ? 0 : x

KRelu6

Rectified linear activation; where upper maximum is 6.0.

KReluX

Rectified linear activation; where upper maximum specified by BatchDescriptor::value_max().

KTanh
KBandPass

Like ReluX; but passes all values in the range [-X,X].

Implementations

impl ActivationMode[src]

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

Returns true if value is a variant of ActivationMode.

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

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

Trait Implementations

impl Clone for ActivationMode[src]

impl Copy for ActivationMode[src]

impl Debug for ActivationMode[src]

impl Default for ActivationMode[src]

impl Eq for ActivationMode[src]

impl Hash for ActivationMode[src]

impl Ord for ActivationMode[src]

impl PartialEq<ActivationMode> for ActivationMode[src]

impl PartialOrd<ActivationMode> for ActivationMode[src]

impl StructuralEq for ActivationMode[src]

impl StructuralPartialEq for ActivationMode[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.