JAX Expressions (Jaxpr)
This lesson will provide an introduction to JAX Expressions.
We'll cover the following
We just discussed how trace objects are used to preempt the sequence of operations outlined in the function. These extracted JAX expressions are discussed in this lesson.
Lambda expressions
Before beginning the JAX expressions, it is helpful to have a quick introduction of Lambda expressions.
Lambda expressions are usually used for anonymous functions. Defining them is pretty easy:
- Specify the
lambda
keyword - Outline the parameters (enclosed by
:
). - Specify the expression body.
For example, a simple Lambda expression to calculate the circumference of a circle is:
Get hands-on with 1400+ tech skills courses.