| @@ -164,7 +164,8 @@ Status FormatTransferC1hwncoc0Hwcn::TransFormat(const TransArgs &args, TransResu | |||||
| } | } | ||||
| GELOGE(ACL_ERROR_GE_SHAPE_INVALID, "[Get][Shape]Failed, total size %ld from dst shape %s, " | GELOGE(ACL_ERROR_GE_SHAPE_INVALID, "[Get][Shape]Failed, total size %ld from dst shape %s, " | ||||
| "src shape %s.", | "src shape %s.", | ||||
| total_size, ShapeToString(args.dst_shape).c_str(), ShapeToString(args.src_shape).c_str()); | |||||
| total_size, ShapeToString(args.dst_shape).c_str(), | |||||
| ShapeToString(args.src_shape).c_str()); | |||||
| REPORT_CALL_ERROR("E19999", "Get shape faield, total size %ld from dst shape %s, src shape %s.", | REPORT_CALL_ERROR("E19999", "Get shape faield, total size %ld from dst shape %s, src shape %s.", | ||||
| total_size, ShapeToString(args.dst_shape).c_str(), | total_size, ShapeToString(args.dst_shape).c_str(), | ||||
| ShapeToString(args.src_shape).c_str()); | ShapeToString(args.src_shape).c_str()); | ||||
| @@ -95,11 +95,12 @@ Status TransFormatDhwncToFz3DTranspose(const TransArgs &args, TransResult &resul | |||||
| std::shared_ptr<uint8_t> dst(new (std::nothrow) uint8_t[dst_size], std::default_delete<uint8_t[]>()); | std::shared_ptr<uint8_t> dst(new (std::nothrow) uint8_t[dst_size], std::default_delete<uint8_t[]>()); | ||||
| if (dst == nullptr) { | if (dst == nullptr) { | ||||
| GELOGE(ACL_ERROR_GE_MEMORY_ALLOCATION, "[Allocate][DSTMemory]Failed to allcoate memory for dst buf %ld " | |||||
| "when trans format from %s to %s", | |||||
| GELOGE(ACL_ERROR_GE_MEMORY_ALLOCATION, "[Allocate][DSTMemory]Failed to allcoate memory " | |||||
| "for dst buf %ld when trans format from %s to %s", | |||||
| dst_size, TypeUtils::FormatToSerialString(args.src_format).c_str(), | dst_size, TypeUtils::FormatToSerialString(args.src_format).c_str(), | ||||
| TypeUtils::FormatToSerialString(args.dst_format).c_str()); | TypeUtils::FormatToSerialString(args.dst_format).c_str()); | ||||
| REPORT_CALL_ERROR("E19999", "Failed to allcoate memory for dst buf %ld when trans format from %s to %s", | |||||
| REPORT_CALL_ERROR("E19999", "Failed to allcoate memory for dst buf %ld " | |||||
| "when trans format from %s to %s", | |||||
| dst_size, TypeUtils::FormatToSerialString(args.src_format).c_str(), | dst_size, TypeUtils::FormatToSerialString(args.src_format).c_str(), | ||||
| TypeUtils::FormatToSerialString(args.dst_format).c_str()); | TypeUtils::FormatToSerialString(args.dst_format).c_str()); | ||||
| return ACL_ERROR_GE_MEMORY_ALLOCATION; | return ACL_ERROR_GE_MEMORY_ALLOCATION; | ||||
| @@ -127,8 +128,8 @@ Status TransFormatDhwncToFz3DTranspose(const TransArgs &args, TransResult &resul | |||||
| args.data + src_idx * data_size, static_cast<size_t>(data_size)); | args.data + src_idx * data_size, static_cast<size_t>(data_size)); | ||||
| } | } | ||||
| if (ret != EOK) { | if (ret != EOK) { | ||||
| GELOGE(ACL_ERROR_GE_MEMORY_OPERATE_FAILED, "[Operate][DSTMemory]Failed at offset %ld, " | |||||
| "error-code %d, pad mode %d", dst_offset, ret, pad_zero); | |||||
| GELOGE(ACL_ERROR_GE_MEMORY_OPERATE_FAILED, "[Operate][DSTMemory]Failed at " | |||||
| "offset %ld, error-code %d, pad mode %d", dst_offset, ret, pad_zero); | |||||
| REPORT_CALL_ERROR("E19999", "Failed to operate dst memory at offset %ld, " | REPORT_CALL_ERROR("E19999", "Failed to operate dst memory at offset %ld, " | ||||
| "error-code %d, pad mode %d", dst_offset, ret, pad_zero); | "error-code %d, pad mode %d", dst_offset, ret, pad_zero); | ||||
| return ACL_ERROR_GE_MEMORY_OPERATE_FAILED; | return ACL_ERROR_GE_MEMORY_OPERATE_FAILED; | ||||
| @@ -315,7 +315,7 @@ Status FormatTransferFractalNz::TransFormat(const TransArgs &args, TransResult & | |||||
| ShapeToString(args.dst_shape).c_str(), | ShapeToString(args.dst_shape).c_str(), | ||||
| TypeUtils::DataTypeToSerialString(args.src_data_type).c_str()); | TypeUtils::DataTypeToSerialString(args.src_data_type).c_str()); | ||||
| REPORT_INNER_ERROR("E19999", "Check datatype failed, trans format from %s to %s, src shape %s, " | REPORT_INNER_ERROR("E19999", "Check datatype failed, trans format from %s to %s, src shape %s, " | ||||
| "dst shape %s, data type %s is not supported", | |||||
| "dst shape %s, data type %s is not supported", | |||||
| TypeUtils::FormatToSerialString(args.src_format).c_str(), | TypeUtils::FormatToSerialString(args.src_format).c_str(), | ||||
| TypeUtils::FormatToSerialString(args.dst_format).c_str(), | TypeUtils::FormatToSerialString(args.dst_format).c_str(), | ||||
| ShapeToString(args.src_shape).c_str(), | ShapeToString(args.src_shape).c_str(), | ||||
| @@ -494,8 +494,8 @@ Status TransFormatNhwcToFz(const TransArgs &args, TransResult &result) { | |||||
| } | } | ||||
| } | } | ||||
| if (ret != EOK) { | if (ret != EOK) { | ||||
| GELOGE(ACL_ERROR_GE_MEMORY_OPERATE_FAILED, "[Operate][DSTMemory]Failed at offset %ld, " | |||||
| "error-code %d, pad mode %d", dst_offset, ret, pad_zero); | |||||
| GELOGE(ACL_ERROR_GE_MEMORY_OPERATE_FAILED, "[Operate][DSTMemory]Failed at offset %ld," | |||||
| " error-code %d, pad mode %d", dst_offset, ret, pad_zero); | |||||
| REPORT_CALL_ERROR("E19999", "Failed to operate dst memory at offset %ld, " | REPORT_CALL_ERROR("E19999", "Failed to operate dst memory at offset %ld, " | ||||
| "error-code %d, pad mode %d", | "error-code %d, pad mode %d", | ||||
| dst_offset, ret, pad_zero); | dst_offset, ret, pad_zero); | ||||