Skip to content

Commit

Permalink
Add definition to etrecord_path to the devtools tutorial (#5481)
Browse files Browse the repository at this point in the history
Add definition to `etrecord_path` to the devtools tutorial (#5458)

Summary:
Pull Request resolved: #5458

This diff adds the definition for variable `etrecord_path`. `etrecord_path` was defined in previous steps in the tutorial, but when user gets to this step, they would usually start a new script, so we should define this variable again.

Reviewed By: Gasoonjia, dvorjackz

Differential Revision: D62921869

fbshipit-source-id: 1d274d5fc76f84f6f943295c142141051fd85cb4
(cherry picked from commit b89c52c)

Co-authored-by: Olivia Liu <olivialpx@meta.com>
  • Loading branch information
pytorchbot and Olivia-liu authored Sep 19, 2024
1 parent d6186d9 commit 93ea1f1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def forward(self, x):
inspector_patch.start()
inspector_patch_print.start()
# sphinx_gallery_end_ignore
etrecord_path = "etrecord.bin"
etdump_path = "etdump.etdp"
inspector = Inspector(etdump_path=etdump_path, etrecord=etrecord_path)
# sphinx_gallery_start_ignore
Expand Down

0 comments on commit 93ea1f1

Please sign in to comment.