From 2ce9f2c0df416275e20d701c500d4a42fde896c2 Mon Sep 17 00:00:00 2001 From: zhengxinQian Date: Tue, 18 Jun 2024 06:39:33 +0000 Subject: [PATCH 1/2] dump support complex dtype doc Signed-off-by: zhengxinQian --- tutorials/experts/source_en/debug/dump.md | 3 ++- tutorials/experts/source_zh_cn/debug/dump.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tutorials/experts/source_en/debug/dump.md b/tutorials/experts/source_en/debug/dump.md index 02101573d4..450fb20d40 100644 --- a/tutorials/experts/source_en/debug/dump.md +++ b/tutorials/experts/source_en/debug/dump.md @@ -601,6 +601,7 @@ Through the asynchronous Dump function, the data files generated by the operator ## Notices - When an operator of type `bfloat16` is saved to the `npy` file, it will be converted to type `float32`. -- Dump only supports saving data with type of bool, int, int8, in16, int32, int64, uint, uint8, uint16, uint32, uint64, float, float16, float32, float64, bfloat16 and double. +- Dump only supports saving data with type of bool, int, int8, in16, int32, int64, uint, uint8, uint16, uint32, uint64, float, float16, float32, float64, bfloat16, double, copmplex64 and complex128. +- Complex64 and complex128 only support saving as npy files, not as statistics information. - The Print operator has an input parameter with type of string, which is not a data type supported by Dump. Therefore, when the Print operator is included in the script, there will be an error log, which will not affect the saving data of other types. - When ACL dump is enabled, lite exception dump is not supported by using set_context(ascend_config={"exception_dump": "2"), while full exception dump is supported by using set_context(ascend_config={"exception_dump": "1"). \ No newline at end of file diff --git a/tutorials/experts/source_zh_cn/debug/dump.md b/tutorials/experts/source_zh_cn/debug/dump.md index 85027f4853..1289aeccfe 100644 --- a/tutorials/experts/source_zh_cn/debug/dump.md +++ b/tutorials/experts/source_zh_cn/debug/dump.md @@ -603,6 +603,7 @@ Dump生成的原始数据文件也可以使用MindSpore Insight的数据解析 ## 注意事项 - `bfloat16`类型的算子保存到`npy`文件时,会转换成`float32`类型。 -- Dump仅支持bool、int、int8、in16、int32、int64、uint、uint8、uint16、uint32、uint64、float、float16、float32、float64、bfloat16、double类型数据的保存。 +- Dump仅支持bool、int、int8、in16、int32、int64、uint、uint8、uint16、uint32、uint64、float、float16、float32、float64、bfloat16、double、complex64、complex128类型数据的保存。 +- Complex64和complex128仅支持保存为npy文件,不支持保存为统计值信息。 - Print算子内部有一个输入参数为string类型,string类型不属于Dump支持的数据类型,所以在脚本中包含Print算子时,会有错误日志,这不会影响其它类型数据的保存。 - 使能ACL dump时,不支持同时使用set_context(ascend_config={"exception_dump": "2")配置轻量异常dump; 支持同时使用set_context(ascend_config={"exception_dump": "1")配置全量异常dump。 -- Gitee From 85d4030e2d112a1bf75bd9c9d5fc6dd7579740f3 Mon Sep 17 00:00:00 2001 From: TingWang Date: Tue, 18 Jun 2024 07:36:16 +0000 Subject: [PATCH 2/2] Update tutorials/experts/source_zh_cn/debug/dump.md capital fix --- tutorials/experts/source_zh_cn/debug/dump.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/experts/source_zh_cn/debug/dump.md b/tutorials/experts/source_zh_cn/debug/dump.md index 1289aeccfe..558b0fc40c 100644 --- a/tutorials/experts/source_zh_cn/debug/dump.md +++ b/tutorials/experts/source_zh_cn/debug/dump.md @@ -604,6 +604,6 @@ Dump生成的原始数据文件也可以使用MindSpore Insight的数据解析 - `bfloat16`类型的算子保存到`npy`文件时,会转换成`float32`类型。 - Dump仅支持bool、int、int8、in16、int32、int64、uint、uint8、uint16、uint32、uint64、float、float16、float32、float64、bfloat16、double、complex64、complex128类型数据的保存。 -- Complex64和complex128仅支持保存为npy文件,不支持保存为统计值信息。 +- complex64和complex128仅支持保存为npy文件,不支持保存为统计值信息。 - Print算子内部有一个输入参数为string类型,string类型不属于Dump支持的数据类型,所以在脚本中包含Print算子时,会有错误日志,这不会影响其它类型数据的保存。 - 使能ACL dump时,不支持同时使用set_context(ascend_config={"exception_dump": "2")配置轻量异常dump; 支持同时使用set_context(ascend_config={"exception_dump": "1")配置全量异常dump。 -- Gitee