Glossary¶
Public Terms¶
Term |
Definition |
|---|---|
An IR transform that vectorizes execution over selected input leaves. |
|
A primitive that labels an intermediate value with a key and collection. It is transparent unless |
|
A context manager that captures checkpointed values during IR execution. |
|
Collection |
A namespace used by checkpoints, |
Cotangent |
Feedback flowing backward through a pullback. In |
Custom rule |
A rule registered on a |
Dead-code elimination, an IR transform that removes equations not needed by selected outputs. |
|
|
A schema description attached with |
Dynamic argument |
An input leaf represented by a placeholder during tracing and provided at execution time. |
Execute |
The phase that runs an IR with concrete inputs through |
A primitive that multiplies the current path weight. It is neutral during ordinary execution and contributes to |
|
A context manager that evaluates foldable primitive calls immediately during tracing and embeds the result as a literal. |
|
A context manager that substitutes checkpointed values from a provided dictionary during execution. |
|
Instance-first DSL |
The schema style where the schema is a value-shaped Python instance, not a separate output class declaration. |
Intercept |
A runtime hook around checkpointed values. |
IR |
The intermediate representation produced by |
A context manager that changes the active LM client for |
|
A context manager that caches primitive results within its block. During tracing, it can deduplicate identical primitive calls. |
|
An IR transform that propagates output cotangents backward to input cotangents. |
|
An IR transform that propagates input tangents forward to output tangents. |
|
Pytree |
A nested container/leaf structure that |
The optree namespace reserved by |
|
An IR transform that groups independent equations for concurrent async execution. |
|
Schema |
A pytree of schema leaves such as |
Static argument |
An input leaf fixed at trace time by |
tag value |
A hashable metadata value attached to equations during tracing. |
A context manager that activates one or more tag values for equations created in its block. |
|
Trace |
The phase that runs a Python function once with placeholders and records |
Transform |
A function that consumes an IR and returns another IR. Current IR transforms include |
An IR transform that returns |
Internal IR Machinery¶
These names are useful when reading internals or debugging a transform. They are not part of the everyday user surface.
Term |
Definition |
|---|---|
Boxing |
The internal technique interpreters use to wrap values with transform-specific metadata. Users normally see the result only through public transforms. |
|
One recorded primitive application in an IR. |
|
A typed placeholder for a runtime value inside an IR. |
|
A named primitive operation used as the dispatch key for execution and transform rules. |
|
The internal wrapper used by the trace interpreter to carry an |
Tracer |
The trace-time interpreter machinery that records primitive calls instead of executing them normally. |
|
The manual IR stepping interface used by execution internals and advanced debugging code. See Walk. |