axonml-nn 0.1.0

Neural network modules for Axonml ML framework
Documentation

axonml-nn

Neural network modules for the Axonml ML framework.

Overview

PyTorch-style neural network building blocks:

  • Layers - Linear, Conv1d/2d, BatchNorm, LayerNorm, Dropout
  • Recurrent - RNN, LSTM, GRU
  • Attention - MultiHeadAttention
  • Activations - ReLU, Sigmoid, Tanh, GELU, SiLU
  • Loss Functions - MSE, CrossEntropy, BCE, L1

Usage

use axonml_nn::{Sequential, Linear, ReLU, Module};

let model = Sequential::new()
    .add(Linear::new(784, 256))
    .add(ReLU)
    .add(Linear::new(256, 10));

let output = model.forward(&input);

Part of Axonml

This crate is part of the Axonml ML framework.

License

MIT OR Apache-2.0