From f8231412fe8952bb9d0bec9a8801c9468250a7ea Mon Sep 17 00:00:00 2001 From: John Tzanakakis Date: Wed, 5 May 2021 09:05:53 -0400 Subject: [PATCH] change type name used in dump file name to align with new Ascend --- mindspore/ccsrc/debug/tensor_load.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/debug/tensor_load.h b/mindspore/ccsrc/debug/tensor_load.h index c0b32c2e86..f464ec5691 100644 --- a/mindspore/ccsrc/debug/tensor_load.h +++ b/mindspore/ccsrc/debug/tensor_load.h @@ -175,7 +175,7 @@ class TensorLoader { std::string file_extension = ".bin"; std::string path = ""; if (trans_flag) { - path = filepath + '_' + shape + '_' + TypeIdLabel(host_type) + '_' + host_fmt + file_extension; + path = filepath + '_' + shape + '_' + TypeIdToType(host_type)->ToString() + '_' + host_fmt + file_extension; } else { path = filepath + '_' + shape + '_' + TypeIdToType(addr_type_id)->ToString() + '_' + addr_format + file_extension; }