Skip to content

Commit 2d7938e

Browse files
committed
print-graph
1 parent 6f783ec commit 2d7938e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/models/llama/export_llama_lib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,9 @@ def _export_llama(args) -> LLMEdgeManager: # noqa: C901
800800
# pyre-fixme[16]: Module `backends` has no attribute `qualcomm`.
801801
canonicalize_program(builder.edge_manager.exported_program())
802802

803+
print(builder.edge_manager.exported_program().graph_module)
804+
print(builder.edge_manager.exported_program().graph_module.print_readable())
805+
803806
builder = builder.to_executorch()
804807

805808
if args.profile_memory:

0 commit comments

Comments
 (0)