latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
tensorplay.export.unflatten
- tensorplay.export.unflatten(module: ExportedProgram, flat_args_adapter: FlatArgsAdapter | None = None, preserve_ops: Any = ()) UnflattenedModule[source]
Build an executable module view from an exported program.
When the capture recorded module call boundaries, the view reconstructs the original module hierarchy (attribute access and submodule calls work as in the source model). Otherwise it falls back to the flat view.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

