latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.compiler
Autograd limitations
In v1.1.0, regions compiled with STAX or an AOT autograd backend support
first-order reverse-mode gradients. They do not support second-order gradients
(double backward). A first gradient computed with create_graph=True has the
correct value, but differentiating it again raises RuntimeError with an
explicit message about this limitation.
Run the original function without compilation when computing Hessians, Hessian-vector products, or other higher-order derivatives. Operator support for higher-order gradients in eager execution does not extend to compiled regions.
Classes
Raised when Python code cannot be represented by the current graph. |
|
A backend name that no registered, built-in or entry-point backend owns. |
|
Backend selections for a nested compiler region. |
Functions
Capture a callable as one graph operation without entering its body. |
|
Declare that a callable returns one stable value across captures. |
|
Compile a callable through the TensorPlay capture and lowering pipeline. |
|
Declare that a callable must not be absorbed into a captured graph. |
|
Prevent capture from entering a callable. |
|
Suspend the public capture state for a dynamic Python region. |
|
Mark a module method as an entry point visible to graph capture. |
|
Return the |
|
Return the currently selected default backend. |
|
Return whether the current Python frame is being captured. |
|
Return whether an export capture session is active. |
|
Return registered backend names accepted by |
|
Return the optimization options each compile |
|
Resolve a backend name or validate a backend callable. |
|
Mark a tensor (or one dimension of it) as fixed for shape policies. |
|
Mark a callable as a reusable nested graph region. |
|
Capture a callable as an opaque operation with structured arguments. |
|
Mark a method declaration as an overload during inspection. |
|
Register a backend in the TensorPlay compiler registry. |
|
Register a backend tagged for diagnostics. |
|
Register a backend tagged for experimental use. |
|
Clear compiler specializations and capture-time constant values. |
|
Set the backend used when |
|
Register a graph-time implementation for a callable. |
|
Remove a named backend from the compiler registry. |
|
Mark a callable as an eager-only helper. |
Help improve this page
Found an error, an unclear step, or a missing example?

