Compiler#
The compiler analyzes the model’s JAX intermediate representation (Jaxpr) to discover relationships between ETP primitives, weight parameters, and hidden states. This page documents the compiler pipeline and its data structures.
Graph Compilation#
The main entry point for compiling a model into an eligibility trace graph.
Constructs the eligibility trace graph for a given model based on the provided inputs. |
|
The overall compiled graph for the eligibility trace. |
Module Info#
Extracts the Jaxpr and state information from a brainstate.nn.Module.
Extracting the model information for the etrace compiler. |
|
The model information for the etrace compiler. |
Graph Executor#
Executes the compiled graph: runs the forward pass and computes the hidden-to-weight and hidden-to-hidden Jacobians.
The eligibility trace graph executor. |
|
The eligibility trace graph executor for the VJP-based online learning algorithms. |