LeanPass

A lightweight, transparent NumPy-based autodiff library for small neural network experiments.

Python 3.8+ PyPI version MIT License pytest

Why LeanPass?

Features

Install

pip install leanpass

Quick start

from leanpass import Tensor, nn

x = Tensor([[1.0, 2.0]], requires_grad=False)
model = nn.MLP([2, 16, 3])
logits = model(x)
print(logits)

Run the demo

python demo.py

Repository layout

Contribution

See the repository files for guidelines: