← all repositories

google/tangent

An open-source Python library from Google that performs ahead-of-time automatic differentiation on source code and produces readable Python derivative code.

2.3k stars Python ML Frameworks
tangent
Velocity · 7d
+0.7
★ / day
Trend
steady
star history

Tangent performs automatic differentiation by analyzing Python source code ahead-of-time, unlike PyTorch which traces execution at runtime or TensorFlow which differentiates a staged data-flow graph. It generates human-readable Python code for derivatives, enabling researchers and students to read, debug, and verify the automatically-generated derivative code. The library targets a large subset of Python, works with TensorFlow and NumPy, and provides autodiff capabilities not found in other Python ML frameworks.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.