Browse Source

error message add format

tags/v1.1.0
wangwenhua1@huawei.com 4 years ago
parent
commit
a70769c882
10 changed files with 13 additions and 5 deletions
  1. +3
    -4
      ge/common/formats/format_transfers/format_transfer_fractal_nz.cc
  2. +1
    -0
      ge/common/formats/format_transfers/format_transfer_fractal_z.cc
  3. +1
    -0
      ge/common/formats/format_transfers/format_transfer_fractal_zz.cc
  4. +2
    -1
      ge/common/formats/format_transfers/format_transfer_fracz_hwcn.cc
  5. +1
    -0
      ge/common/formats/format_transfers/format_transfer_fracz_nchw.cc
  6. +1
    -0
      ge/common/formats/format_transfers/format_transfer_fracz_nhwc.cc
  7. +1
    -0
      ge/common/formats/format_transfers/format_transfer_hwcn_c1hwncoc0.cc
  8. +1
    -0
      ge/common/formats/format_transfers/format_transfer_nc1hwc0_nchw.cc
  9. +1
    -0
      ge/common/formats/format_transfers/format_transfer_nc1hwc0_nhwc.cc
  10. +1
    -0
      ge/common/formats/format_transfers/format_transfer_nchw_nc1hwc0.cc

+ 3
- 4
ge/common/formats/format_transfers/format_transfer_fractal_nz.cc View File

@@ -22,6 +22,7 @@
#include "common/formats/utils/formats_definitions.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/debug/log.h"
#include "graph/utils/type_utils.h"

namespace ge {
@@ -39,11 +40,9 @@ bool CheckShape(Format format, const ShapeVector &shape) {
case FORMAT_NHWC:
return CheckShapeValid(shape, kDimSize4D);
default:
std::string error = "Trans format between[" + TypeUtils::FormatToSerialString(format) +
"] and FORMAT_FRACTAL_NZ is not supported.";
std::string error = "Trans format between " + FmtToStr(TypeUtils::FormatToSerialString(format)) +
" and FORMAT_FRACTAL_NZ is not supported.";
GE_ERRORLOG_AND_ERRORMSG(PARAM_INVALID, error.c_str());
GELOGE(PARAM_INVALID, "Trans format between %s and FORMAT_FRACTAL_NZ is not supported.",
TypeUtils::FormatToSerialString(format).c_str());
return false;
}
}


+ 1
- 0
ge/common/formats/format_transfers/format_transfer_fractal_z.cc View File

@@ -23,6 +23,7 @@
#include "common/formats/utils/formats_definitions.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/debug/log.h"
#include "graph/utils/type_utils.h"

namespace ge {


+ 1
- 0
ge/common/formats/format_transfers/format_transfer_fractal_zz.cc View File

@@ -22,6 +22,7 @@
#include "common/formats/utils/formats_definitions.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/debug/log.h"
#include "graph/utils/type_utils.h"

namespace ge {


+ 2
- 1
ge/common/formats/format_transfers/format_transfer_fracz_hwcn.cc View File

@@ -22,6 +22,7 @@
#include "common/formats/utils/formats_definitions.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/debug/log.h"
#include "graph/utils/type_utils.h"

namespace ge {
@@ -65,7 +66,7 @@ Status CheckArgsForFracZToHwcn(const TransArgs &args) {
FmtToStr(ShapeToString(dst_shape)) + ;
GE_ERRORLOG_AND_ERRORMSG(UNSUPPORTED, error.c_str());
return PARAM_INVALID;
}
}

return SUCCESS;
}


+ 1
- 0
ge/common/formats/format_transfers/format_transfer_fracz_nchw.cc View File

@@ -22,6 +22,7 @@
#include "common/formats/utils/formats_definitions.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/debug/log.h"
#include "graph/utils/type_utils.h"

namespace ge {


+ 1
- 0
ge/common/formats/format_transfers/format_transfer_fracz_nhwc.cc View File

@@ -22,6 +22,7 @@
#include "common/formats/utils/formats_definitions.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/debug/log.h"
#include "graph/utils/type_utils.h"

namespace ge {


+ 1
- 0
ge/common/formats/format_transfers/format_transfer_hwcn_c1hwncoc0.cc View File

@@ -22,6 +22,7 @@
#include "common/formats/utils/formats_definitions.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/debug/log.h"
#include "graph/utils/type_utils.h"

namespace ge {


+ 1
- 0
ge/common/formats/format_transfers/format_transfer_nc1hwc0_nchw.cc View File

@@ -22,6 +22,7 @@
#include "common/formats/utils/formats_definitions.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/debug/log.h"
#include "graph/utils/type_utils.h"

namespace ge {


+ 1
- 0
ge/common/formats/format_transfers/format_transfer_nc1hwc0_nhwc.cc View File

@@ -22,6 +22,7 @@
#include "common/formats/utils/formats_definitions.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/debug/log.h"
#include "graph/utils/type_utils.h"

namespace ge {


+ 1
- 0
ge/common/formats/format_transfers/format_transfer_nchw_nc1hwc0.cc View File

@@ -22,6 +22,7 @@
#include "common/formats/utils/formats_definitions.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/debug/log.h"
#include "graph/utils/type_utils.h"

namespace ge {


Loading…
Cancel
Save