Module neural

Source
Expand description

Neural network layers and models using the array protocol.

This module provides neural network layers and models that work with any array type implementing the ArrayProtocol trait.

Structs§

BatchNorm
Batch normalization layer.
Conv2D
Convolutional layer.
Conv2DBuilder
Builder for creating Conv2D layers
Dropout
Dropout layer.
Linear
Linear (dense/fully-connected) layer.
MaxPool2D
Max pooling layer.
MultiHeadAttention
Multi-head attention layer.
Sequential
Sequential model that chains layers together.

Traits§

Layer
Trait for neural network layers.

Functions§

create_simple_cnn
Example function to create a simple CNN model.