docsapi referencedarkforest-py-binding-pyautograd
API Referencecrate: darkforest-pysince v0.1.0-alpha

PyAutograd

Python interface to the Dark Forest iterative tape autograd engine.

PyAutograd

darkforest-py module: binding since v0.1.0-alpha

Signature

rust
#[pyclass] pub struct PyAutograd {}

Overview

Python interface to the Dark Forest iterative tape autograd engine.

Invariants & Design Principles

  • Invariant: Exposes .backward() and .grad hooks identical to PyTorch API.

Usage Example

rust
loss.backward()

Related Components