pith. sign in

arxiv: 1711.02712 · v1 · pith:BUXRYS37new · submitted 2017-11-07 · 💻 cs.MS · stat.ML

Tangent: Automatic Differentiation Using Source Code Transformation in Python

classification 💻 cs.MS stat.ML
keywords pythoncodetangentautomaticdifferentiationfunctionsgeneratesgradient
0
0 comments X
read the original abstract

Automatic differentiation (AD) is an essential primitive for machine learning programming systems. Tangent is a new library that performs AD using source code transformation (SCT) in Python. It takes numeric functions written in a syntactic subset of Python and NumPy as input, and generates new Python functions which calculate a derivative. This approach to automatic differentiation is different from existing packages popular in machine learning, such as TensorFlow and Autograd. Advantages are that Tangent generates gradient code in Python which is readable by the user, easy to understand and debug, and has no runtime overhead. Tangent also introduces abstractions for easily injecting logic into the generated gradient code, further improving usability.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.