From 4566fb69c0dac8d3b77daced7bfeaef2ffdb5638 Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Fri, 2 Apr 2021 10:50:37 +0800 Subject: [PATCH] format log optimize --- ge/common/formats/formats.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ge/common/formats/formats.cc b/ge/common/formats/formats.cc index f139ec1c..56dc2235 100755 --- a/ge/common/formats/formats.cc +++ b/ge/common/formats/formats.cc @@ -45,9 +45,9 @@ GE_FUNC_DEV_VISIBILITY GE_FUNC_HOST_VISIBILITY Status TransFormat(const TransArg auto src_shape_size = GetItemNumByShape(args.src_shape); if (args.data == nullptr && src_shape_size != 0) { GELOGE(ACL_ERROR_GE_PARAM_INVALID, "[Check][Shape]Failed, input data is null, src_shape %s", - TypeUtils::DataTypeToSerialString(args.src_shape).c_str()); + ShapeToString(args.src_shape).c_str()); REPORT_CALL_ERROR("E19999","Failed to chech shape, input data is null, src_shape %s", - TypeUtils::DataTypeToSerialString(args.src_shape).c_str()); + ShapeToString(args.src_shape).c_str()); return ACL_ERROR_GE_PARAM_INVALID; }