From 015c802656005a65893043e3b01e15cc87598674 Mon Sep 17 00:00:00 2001 From: luoxuewei Date: Mon, 2 Sep 2024 10:05:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=99=E6=80=81=E5=9B=BE=E8=AF=A5=E6=9C=BA?= =?UTF-8?q?=E7=BC=96=E7=A8=8B=E6=8A=80=E5=B7=A7=E6=95=99=E7=A8=8B=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20warning=20=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static_graph_expert_programming.ipynb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/mindspore/source_zh_cn/model_train/program_form/static_graph_syntax/static_graph_expert_programming.ipynb b/docs/mindspore/source_zh_cn/model_train/program_form/static_graph_syntax/static_graph_expert_programming.ipynb index 8705b26b78..9610fa488e 100644 --- a/docs/mindspore/source_zh_cn/model_train/program_form/static_graph_syntax/static_graph_expert_programming.ipynb +++ b/docs/mindspore/source_zh_cn/model_train/program_form/static_graph_syntax/static_graph_expert_programming.ipynb @@ -377,6 +377,20 @@ "```text\n", "Enable comile_cache cost time: 0.6357541084289551\n", "Enable comile_cache cost time: 0.09379792213439941\n", + "```\n", + "\n", + "可以看到,开启编译缓存时,第2次执行样例耗时只有第一次执行耗时的1/7左右。\n", + "\n", + "说明:打开编译缓存功能时,第一次执行由于暂未生成缓存,所以会有 Warning:" + ] + }, + { + "cell_type": "markdown", + "id": "0d79d7bb", + "metadata": {}, + "source": [ + "```text\n", + "Warning: Check the consistency of dependency files hash failed. Execute all the compilation actions.\n", "```" ] }, @@ -385,8 +399,6 @@ "id": "b5655959", "metadata": {}, "source": [ - "可以看到,开启编译缓存时,第2次执行样例耗时只有第一次执行耗时的1/7左右。\n", - "\n", "## 如何优化执行性能\n", "\n", "### 使用jit_class\n", -- Gitee