Hand-written autograd

Every differentiable operation wraps its inputs in a dedicated *Backward node that implements the local gradient rule. The full reverse-mode chain is explicit and readable — backpropagation is a simple walk over the graph each op builds.

Neural networks

14 optimizers

SGD, SGD with momentum, Adam, Adamax, NAdam, AMSGrad, RMSprop, Adagrad, Adadelta, Nesterov, PID, Levenberg–Marquardt, and more — all sharing a single Optimizer base with a standard step() / zero_grad() interface.

Control-flavoured tools

Verified by finite differences

The test suite checks the gradient of every operation against numeric differentiation, so the math is not just claimed — it is measured. The suite currently has 108 passing tests covering tensors, modules, optimizers, and the control tools.

Quality