From 028feba006642f65d55f4d6be68da461e9d7033e Mon Sep 17 00:00:00 2001 From: sunyiming Date: Wed, 13 Dec 2023 09:56:50 +0000 Subject: [PATCH 1/5] update debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md. Signed-off-by: sunyiming --- debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md b/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md index 12c8b454f..eddfec475 100644 --- a/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md +++ b/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md @@ -173,4 +173,12 @@ compare(dump_result_param, "./output", stack_mode=True) ### 17. 添加ptdbg_ascend工具后截取操作报错:`IndexError: too many indices for tensor of dimension x` 或 `TypeError: len() of a 0-d tensor`。 -删除ptdbg_ascend工具的hook_module目录下yaml文件中Tensor:下的`- __getitem__`即可。 +- 删除ptdbg_ascend工具的hook_module目录下yaml文件中Tensor:下的`- __getitem__`即可。 + +### 18. 添加ptdbg_ascend工具后触发一些类型检查相关的报错(比如F.gelu),原因是工具对api进行了套壳,虽然行为和原api保持一致,但是这种回报类型检查错误。 + +- 删除ptdbg_ascend工具的hook_module目录下yaml文件中的gelu。 + +### 19. 添加ptdbg_ascend工具后触发AsStrided算子相关的报错,或者编译相关的报错。 + +- 删除ptdbg_ascend工具的hook_module目录下yaml文件中yaml里的t和transpose。 \ No newline at end of file -- Gitee From c4ab0e034e064021d70017802d3dfe8288c91ae4 Mon Sep 17 00:00:00 2001 From: sunyiming Date: Thu, 14 Dec 2023 09:02:40 +0000 Subject: [PATCH 2/5] update debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md. Signed-off-by: sunyiming --- debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md b/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md index eddfec475..9f67979b8 100644 --- a/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md +++ b/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md @@ -171,14 +171,14 @@ compare(dump_result_param, "./output", stack_mode=True) - 请在model示例化之后配置register hook。 -### 17. 添加ptdbg_ascend工具后截取操作报错:`IndexError: too many indices for tensor of dimension x` 或 `TypeError: len() of a 0-d tensor`。 +### 17. 添加ptdbg_ascend工具后如果截取操作报错:`IndexError: too many indices for tensor of dimension x` 或 `TypeError: len() of a 0-d tensor`。 - 删除ptdbg_ascend工具的hook_module目录下yaml文件中Tensor:下的`- __getitem__`即可。 -### 18. 添加ptdbg_ascend工具后触发一些类型检查相关的报错(比如F.gelu),原因是工具对api进行了套壳,虽然行为和原api保持一致,但是这种回报类型检查错误。 +### 18. 添加ptdbg_ascend工具后如果F.gelu触发ValueError报错:`activation_func must be F.gelu`等。 - 删除ptdbg_ascend工具的hook_module目录下yaml文件中的gelu。 -### 19. 添加ptdbg_ascend工具后触发AsStrided算子相关的报错,或者编译相关的报错。 +### 19. 添加ptdbg_ascend工具后如果触发AsStrided算子相关的报错,或者编译相关的报错,如:`Failed to compile Op [AsStrided]`。 -- 删除ptdbg_ascend工具的hook_module目录下yaml文件中yaml里的t和transpose。 \ No newline at end of file +- 删除ptdbg_ascend工具的hook_module目录下yaml文件中Tensor:下的`- t`和`- transpose`即可。 \ No newline at end of file -- Gitee From 176d352bf7cd3cfd0a0960c1f6d3aaa6b623a1b9 Mon Sep 17 00:00:00 2001 From: sunyiming Date: Thu, 14 Dec 2023 09:12:37 +0000 Subject: [PATCH 3/5] update debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md. Signed-off-by: sunyiming --- debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md b/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md index 9f67979b8..5308b2b00 100644 --- a/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md +++ b/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md @@ -173,12 +173,14 @@ compare(dump_result_param, "./output", stack_mode=True) ### 17. 添加ptdbg_ascend工具后如果截取操作报错:`IndexError: too many indices for tensor of dimension x` 或 `TypeError: len() of a 0-d tensor`。 -- 删除ptdbg_ascend工具的hook_module目录下yaml文件中Tensor:下的`- __getitem__`即可。 +- 删除工具目录ptdbg_ascend/hook_module/support_wrap_ops.yaml文件中Tensor:下的`- __getitem__`。 ### 18. 添加ptdbg_ascend工具后如果F.gelu触发ValueError报错:`activation_func must be F.gelu`等。 -- 删除ptdbg_ascend工具的hook_module目录下yaml文件中的gelu。 +- 删除工具目录ptdbg_ascend/hook_module/support_wrap_ops.yaml文件中functional:下的的`- gelu`。 + +删除ptdbg_ascend工具hook_module/support_wrap_ops.yaml文件中对应的api名字(比如F.gelu就对应了functional下的gelu) ### 19. 添加ptdbg_ascend工具后如果触发AsStrided算子相关的报错,或者编译相关的报错,如:`Failed to compile Op [AsStrided]`。 -- 删除ptdbg_ascend工具的hook_module目录下yaml文件中Tensor:下的`- t`和`- transpose`即可。 \ No newline at end of file +- 删除工具目录ptdbg_ascend/hook_module/support_wrap_ops.yaml文件中Tensor:下的`- t`和`- transpose`。 \ No newline at end of file -- Gitee From 03de291386b4c98dac24182d4fc85ac742d05322 Mon Sep 17 00:00:00 2001 From: sunyiming Date: Thu, 14 Dec 2023 09:16:41 +0000 Subject: [PATCH 4/5] update debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md. Signed-off-by: sunyiming --- debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md b/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md index 5308b2b00..515913ea5 100644 --- a/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md +++ b/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md @@ -171,16 +171,16 @@ compare(dump_result_param, "./output", stack_mode=True) - 请在model示例化之后配置register hook。 -### 17. 添加ptdbg_ascend工具后如果截取操作报错:`IndexError: too many indices for tensor of dimension x` 或 `TypeError: len() of a 0-d tensor`。 +### 17. 添加ptdbg_ascend工具后截取操作报错:`IndexError: too many indices for tensor of dimension x` 或 `TypeError: len() of a 0-d tensor`。 - 删除工具目录ptdbg_ascend/hook_module/support_wrap_ops.yaml文件中Tensor:下的`- __getitem__`。 -### 18. 添加ptdbg_ascend工具后如果F.gelu触发ValueError报错:`activation_func must be F.gelu`等。 +### 18. 添加ptdbg_ascend工具后F.gelu触发ValueError报错:`activation_func must be F.gelu`等。 - 删除工具目录ptdbg_ascend/hook_module/support_wrap_ops.yaml文件中functional:下的的`- gelu`。 删除ptdbg_ascend工具hook_module/support_wrap_ops.yaml文件中对应的api名字(比如F.gelu就对应了functional下的gelu) -### 19. 添加ptdbg_ascend工具后如果触发AsStrided算子相关的报错,或者编译相关的报错,如:`Failed to compile Op [AsStrided]`。 +### 19. 添加ptdbg_ascend工具后触发AsStrided算子相关的报错,或者编译相关的报错,如:`Failed to compile Op [AsStrided]`。 - 删除工具目录ptdbg_ascend/hook_module/support_wrap_ops.yaml文件中Tensor:下的`- t`和`- transpose`。 \ No newline at end of file -- Gitee From e2e29b9f0918cf9805a83df1775dfa80ba3aea9e Mon Sep 17 00:00:00 2001 From: sunyiming Date: Thu, 14 Dec 2023 09:21:47 +0000 Subject: [PATCH 5/5] update debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md. Signed-off-by: sunyiming --- debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md b/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md index 515913ea5..53d487058 100644 --- a/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md +++ b/debug/accuracy_tools/ptdbg_ascend/doc/FAQ.md @@ -179,8 +179,6 @@ compare(dump_result_param, "./output", stack_mode=True) - 删除工具目录ptdbg_ascend/hook_module/support_wrap_ops.yaml文件中functional:下的的`- gelu`。 -删除ptdbg_ascend工具hook_module/support_wrap_ops.yaml文件中对应的api名字(比如F.gelu就对应了functional下的gelu) - ### 19. 添加ptdbg_ascend工具后触发AsStrided算子相关的报错,或者编译相关的报错,如:`Failed to compile Op [AsStrided]`。 - 删除工具目录ptdbg_ascend/hook_module/support_wrap_ops.yaml文件中Tensor:下的`- t`和`- transpose`。 \ No newline at end of file -- Gitee