Skip to content

Commit

Permalink
Add the missing import generate_etrecord to doc Getting Started with …
Browse files Browse the repository at this point in the history
…LLM (#2977) (#2997)

Summary:
Pull Request resolved: #2977

As titled

Reviewed By: Gasoonjia

Differential Revision: D55992093

fbshipit-source-id: 7864c330bd86af5d4127cacfd47e96f1e6666bfb
(cherry picked from commit cb9caa3)

Co-authored-by: Olivia Liu <olivialpx@meta.com>
  • Loading branch information
pytorchbot and Olivia-liu authored Apr 12, 2024
1 parent be476a5 commit ca69051
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/llm/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ In your export script, after calling `to_edge()` and `to_executorch()`, call `ge
```
import copy
from executorch.sdk import generate_etrecord

# Make the deep copy immediately after to to_edge()
edge_manager_copy = copy.deepcopy(edge_manager)
Expand Down Expand Up @@ -678,7 +679,7 @@ inspector = Inspector(etdump_path="etdump.etdp")
with open("inspector_out.txt", "w") as file:
inspector.print_data_tabular(file)
```
This prints the performance data in a tabular format in “inspector_out.txt”, with each row being a profiling event.
This prints the performance data in a tabular format in “inspector_out.txt”, with each row being a profiling event. Top rows look like this:
![](../_static/img/llm_manual_print_data_tabular.png)
<a href="../_static/img/llm_manual_print_data_tabular.png" target="_blank">View in full size</a>

Expand Down

0 comments on commit ca69051

Please sign in to comment.