Enum leaf::layer::LayerType [] [src]

pub enum LayerType {
    Linear(LinearConfig),
    LogSoftmax,
    Sequential(SequentialConfig),
    Softmax,
    ReLU,
    Sigmoid,
    NegativeLogLikelihood(NegativeLogLikelihoodConfig),
    Reshape(ReshapeConfig),
}

The Layer Types

Variants

Linear

Linear Layer

LogSoftmax

LogSoftmax Layer

Sequential

Sequential Layer

Softmax

Softmax Layer

ReLU

ReLU Layer

Sigmoid

Sigmoid Layer

NegativeLogLikelihood

NegativeLogLikelihood Layer

Reshape

Reshape Layer

Methods

impl LayerType

fn supports_in_place(&self) -> bool

Returns wether the LayerType supports in-place operations.

Trait Implementations

Derived Implementations

impl Clone for LayerType

fn clone(&self) -> LayerType

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for LayerType

fn fmt(&self, __arg_0: &mut Formatter) -> Result