pub enum LayerType {
Show 14 variants
Convolution(ConvolutionConfig),
Rnn(RnnConfig),
Linear(LinearConfig),
LogSoftmax,
Pooling(PoolingConfig),
Sequential(SequentialConfig),
Softmax,
Dropout(DropoutConfig),
ReLU,
TanH,
Sigmoid,
NegativeLogLikelihood(NegativeLogLikelihoodConfig),
MeanSquaredError,
Reshape(ReshapeConfig),
}
Expand description
The Layer Types
Variants§
Convolution(ConvolutionConfig)
Convolution Layer
Rnn(RnnConfig)
RNN Layer
Linear(LinearConfig)
Linear Layer
LogSoftmax
LogSoftmax Layer
Pooling(PoolingConfig)
Pooling Layer
Sequential(SequentialConfig)
Sequential Layer
Softmax
Softmax Layer
Dropout(DropoutConfig)
Dropout
ReLU
ReLU Layer
TanH
TanH Layer
Sigmoid
Sigmoid Layer
NegativeLogLikelihood(NegativeLogLikelihoodConfig)
NegativeLogLikelihood Layer
MeanSquaredError
MeanSquaredError Layer
Reshape(ReshapeConfig)
Reshape Layer
Implementations§
Trait Implementations§
source§impl Into<LayerType> for ConvolutionConfig
impl Into<LayerType> for ConvolutionConfig
source§impl Into<LayerType> for DropoutConfig
impl Into<LayerType> for DropoutConfig
source§impl Into<LayerType> for LinearConfig
impl Into<LayerType> for LinearConfig
source§impl Into<LayerType> for NegativeLogLikelihoodConfig
impl Into<LayerType> for NegativeLogLikelihoodConfig
source§impl Into<LayerType> for PoolingConfig
impl Into<LayerType> for PoolingConfig
source§impl Into<LayerType> for ReshapeConfig
impl Into<LayerType> for ReshapeConfig
Auto Trait Implementations§
impl RefUnwindSafe for LayerType
impl Send for LayerType
impl Sync for LayerType
impl Unpin for LayerType
impl UnwindSafe for LayerType
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