# ExportedProgram Source: https://www.tensorplay.cn/docs/generated/tensorplay.export.ExportedProgram.html ```python class tensorplay.export.ExportedProgram(graph_module: GraphModule, graph_signature: ExportGraphSignature | GraphSignature, example_inputs: dict[str, ~typing.Any]=, dynamic_shapes: Any = None, module_call_graph: list[ModuleCallEntry] = , range_constraints: dict[~typing.Any, ~typing.Any]=, equality_constraints: list[EqualityConstraint] = , verifier: Any = None) ``` A validated graph together with its state and example bindings. ```python buffers() → Iterator[Any] ``` Iterate over the captured module’s buffers. ```python static call_exported(program: ExportedProgram) → Callable[[...], Any] ``` Return a callable executing the flat contract on user arguments. ```python property code: str ``` Python source of the captured graph’s generated forward. ```python classmethod deserialize(artifact: Any, state_dict: Any = None, constants: Any = None, example_inputs: Any = None) → ExportedProgram ``` Rebuild a program from [serialize()](#tensorplay.export.ExportedProgram.serialize) artifacts. ```python invalidate_unlifted() → None ``` Drop the cached unlifted module so the next call rebuilds it. ```python module() → GraphModule ``` Return a self-contained module with lifted state folded back in. The returned module takes only the user arguments: state placeholders are rewritten into attribute reads on a fresh module that owns the parameter, buffer, and constant values. The result is cached; pass rebind to drop state changes made through this program view. ```python parameters() → Iterator[Any] ``` Iterate over the captured module’s parameters. ```python run_decompositions(decomp_table: Any = None) → ExportedProgram ``` Return a copied program after applying registered graph rewrites. Entries map a graph target (a callable, a method name, or a target string) to a builder invoked as builder(graph, node); the builder creates the replacement nodes and returns the value users should consume. Nodes whose target has no entry are left untouched. ```python serialize(opset_version: Any = None, pickle_protocol: int = 4) → Any ``` Return serialized program artifacts (JSON program + example inputs). ```python property state_dict: dict[str, Any] ``` Tensor values of the lifted parameters and persistent buffers. ```python property tensor_constants: dict[str, Any] ``` Lifted non-parameter, non-buffer tensor values.