pub enum Layer {
Show 13 variants
Dense(DenseLayer),
Conv2D(Conv2DLayer),
MaxPool(MaxPoolLayer),
BatchNorm(BatchNormLayer),
Dropout(DropoutLayer),
Flatten,
ReLU,
Sigmoid,
Tanh,
Softmax(usize),
GELU,
Residual(ResidualBlock),
Attention(MultiHeadAttention),
}Expand description
A single layer in a neural network.
Variants§
Dense(DenseLayer)
Conv2D(Conv2DLayer)
MaxPool(MaxPoolLayer)
BatchNorm(BatchNormLayer)
Dropout(DropoutLayer)
Flatten
ReLU
Sigmoid
Tanh
Softmax(usize)
GELU
Residual(ResidualBlock)
Attention(MultiHeadAttention)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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