From acc74660b223644c4b5c64484a533cdb4114269e Mon Sep 17 00:00:00 2001 From: Olivia Liu Date: Wed, 18 Sep 2024 14:00:41 -0700 Subject: [PATCH] Add definition to `etrecord_path` to the devtools tutorial (#5458) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/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 b89c52cdc6211cf24d650b1765d9426001ddb8c4) --- docs/source/tutorials_source/devtools-integration-tutorial.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/tutorials_source/devtools-integration-tutorial.py b/docs/source/tutorials_source/devtools-integration-tutorial.py index b6acb555d08..b5e335b43d1 100644 --- a/docs/source/tutorials_source/devtools-integration-tutorial.py +++ b/docs/source/tutorials_source/devtools-integration-tutorial.py @@ -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