|
|
|
@@ -49,7 +49,7 @@ Status CheckArgsForC1hwncoc0ToHwcn(const TransArgs &args) { |
|
|
|
return UNSUPPORTED; |
|
|
|
} |
|
|
|
if (!CheckShapeValid(src_shape, kC1hwncoc0DimsNum)) { |
|
|
|
GELOGE(PARAM_INVALID, "Failed to check src shape %s", ShapeToString(src_shape).c_str()); |
|
|
|
GELOGE(PARAM_INVALID, "Failed to check src shape %s.", ShapeToString(src_shape).c_str()); |
|
|
|
return PARAM_INVALID; |
|
|
|
} |
|
|
|
if (!CheckShapeValid(dst_shape, kHwcnDimsNum)) { |
|
|
|
@@ -147,7 +147,7 @@ Status FormatTransferC1hwncoc0Hwcn::TransFormat(const TransArgs &args, TransResu |
|
|
|
ShapeToString(args.dst_shape).c_str(), ShapeToString(args.src_shape).c_str()); |
|
|
|
return PARAM_INVALID; |
|
|
|
} |
|
|
|
GELOGD("Begin to trans format from C1HWNCoC0 to HWCN, src shape %s, data type %s, dst shape %s, memory size %ld", |
|
|
|
GELOGD("Begin to trans format from C1HWNCoC0 to HWCN, src shape %s, data type %s, dst shape %s, memory size %ld.", |
|
|
|
ShapeToString(args.src_shape).c_str(), TypeUtils::DataTypeToSerialString(args.src_data_type).c_str(), |
|
|
|
ShapeToString(args.dst_shape).c_str(), total_size); |
|
|
|
if (GetDstDataAfterTrans(args, result, size, total_size) != SUCCESS) { |
|
|
|
@@ -161,7 +161,7 @@ Status FormatTransferC1hwncoc0Hwcn::TransFormat(const TransArgs &args, TransResu |
|
|
|
|
|
|
|
Status FormatTransferC1hwncoc0Hwcn::TransShape(Format src_format, const std::vector<int64_t> &src_shape, |
|
|
|
DataType data_type, Format dst_format, std::vector<int64_t> &dst_shape) { |
|
|
|
GELOGD("The shape derivation from C1HWNCoC0 to HWCN is not unique. Trans shape in this direction is not supported"); |
|
|
|
GELOGD("The shape derivation from C1HWNCoC0 to HWCN is not unique. Trans shape in this direction is not supported."); |
|
|
|
return ACL_ERROR_GE_TRANSSHAPE_FORMAT_INVALID; |
|
|
|
} |
|
|
|
|
|
|
|
|