From abe5f8f9bb7c8c8d37b76c79360b10da311f3851 Mon Sep 17 00:00:00 2001 From: shibo Date: Sat, 29 Jan 2022 14:57:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=BC=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=B7=AF=E5=BE=84=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...215&\350\256\255\347\273\203\346\214\207\345\215\227.md" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git "a/docs/zh/PyTorch\347\275\221\347\273\234\346\250\241\345\236\213\347\247\273\346\244\215&\350\256\255\347\273\203\346\214\207\345\215\227/PyTorch\347\275\221\347\273\234\346\250\241\345\236\213\347\247\273\346\244\215&\350\256\255\347\273\203\346\214\207\345\215\227.md" "b/docs/zh/PyTorch\347\275\221\347\273\234\346\250\241\345\236\213\347\247\273\346\244\215&\350\256\255\347\273\203\346\214\207\345\215\227/PyTorch\347\275\221\347\273\234\346\250\241\345\236\213\347\247\273\346\244\215&\350\256\255\347\273\203\346\214\207\345\215\227.md" index 2dc38f8093..28745107ea 100644 --- "a/docs/zh/PyTorch\347\275\221\347\273\234\346\250\241\345\236\213\347\247\273\346\244\215&\350\256\255\347\273\203\346\214\207\345\215\227/PyTorch\347\275\221\347\273\234\346\250\241\345\236\213\347\247\273\346\244\215&\350\256\255\347\273\203\346\214\207\345\215\227.md" +++ "b/docs/zh/PyTorch\347\275\221\347\273\234\346\250\241\345\236\213\347\247\273\346\244\215&\350\256\255\347\273\203\346\214\207\345\215\227/PyTorch\347\275\221\347\273\234\346\250\241\345\236\213\347\247\273\346\244\215&\350\256\255\347\273\203\346\214\207\345\215\227.md" @@ -2059,12 +2059,12 @@ E2E prof工具是一个将pytorch框架的profiling工具和cann prof工具获 添加with语句使能E2E prof功能 ``` -with torch.npu.profile(profiler_result_path="./result",use_e2e_profiler=Ture): +with torch.npu.profile(profiler_result_path="./result",use_e2e_profiler=True): model_train() ``` -- profiler_result_path表示prof结果保存路径,默认为当前路径。 +- profiler_result_path表示prof结果保存路径,默认为当前路径,若设置其他路径请确保路径已存在。 - use_e2e_profiler表示是否开启E2E prof功能,默认为False(仅开启CANN prof功能)。 (因NUP算子需要编译后才能执行,为保证数据的准确性,建议先运行10个step,在第十个step后再进行E2E prof操作,并且一般只需要profiling1个或者2个setp即可。) @@ -2075,7 +2075,7 @@ with torch.npu.profile(profiler_result_path="./result",use_e2e_profiler=Ture): 1. 以使用教程中路径为例,工具会在profiler_result_path路径下创建文件夹以保存原始数据。![](figures/1.png) -2. 切换至如上图./result路径后,执行脚本。 +2. 切换至如上图./results/PROF_***路径后,执行下述脚本,其中PROF_***文件夹为自动生成的文件夹。 ``` /usr/local/Ascend/ascend-toolkit/latest/toolkit/tools/profiler/bin/msprof --export=on --output=./ -- Gitee