Skip to content

Commit

Permalink
Add definition to etrecord_path to the devtools tutorial (#5458)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Olivia-liu authored and pytorchbot committed Sep 19, 2024
1 parent c715c3d commit acc7466
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 acc7466

Please sign in to comment.