From 39e9aafb7a12a41698ae88a2d338ea1406a0b8af Mon Sep 17 00:00:00 2001 From: luoxuewei Date: Mon, 2 Sep 2024 16:07:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=9D=99=E6=80=81=E5=9B=BE=E9=AB=98?= =?UTF-8?q?=E7=BA=A7=E7=BC=96=E7=A8=8B=E6=8A=80=E5=B7=A7=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?warning=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/tutorials/source_zh_cn/advanced/static_graph_expert_programming.ipynb b/tutorials/source_zh_cn/advanced/static_graph_expert_programming.ipynb index ccfb49c3c6..455d46b8c2 100644 --- a/tutorials/source_zh_cn/advanced/static_graph_expert_programming.ipynb +++ b/tutorials/source_zh_cn/advanced/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": "498a9d64", + "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 From ac5793db6307a2c8f65fb428db1002091ae4cdc0 Mon Sep 17 00:00:00 2001 From: luoxuewei Date: Mon, 2 Sep 2024 16:07:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=9D=99=E6=80=81=E5=9B=BE=E9=AB=98?= =?UTF-8?q?=E7=BA=A7=E7=BC=96=E7=A8=8B=E6=8A=80=E5=B7=A7=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?warning=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../advanced/static_graph_expert_programming.md | 6 ++++++ .../static_graph_expert_programming.ipynb | 16 ++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/tutorials/source_en/advanced/static_graph_expert_programming.md b/tutorials/source_en/advanced/static_graph_expert_programming.md index 3ae245d207..800abced42 100644 --- a/tutorials/source_en/advanced/static_graph_expert_programming.md +++ b/tutorials/source_en/advanced/static_graph_expert_programming.md @@ -267,6 +267,12 @@ Enable comile_cache cost time: 0.09379792213439941 As you can see, when compilation cache is enabled, the 2nd execution of the sample takes only about 1/7th of the time for the first execution. +Explanation: When the compile cache function is turned on, the first execution will not generate the cache yet, resulting in a warning: + +```text +Warning: Check the consistency of dependency files hash failed. Execute all the compilation actions. +``` + ## How to Optimize Execution Performance ### Using jit_class diff --git a/tutorials/source_zh_cn/advanced/static_graph_expert_programming.ipynb b/tutorials/source_zh_cn/advanced/static_graph_expert_programming.ipynb index ccfb49c3c6..455d46b8c2 100644 --- a/tutorials/source_zh_cn/advanced/static_graph_expert_programming.ipynb +++ b/tutorials/source_zh_cn/advanced/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": "498a9d64", + "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