TensorPlay
latest (dev)
Copy
View Markdown

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.

On this page

Ask DeepWiki