Browse Source

fix complex not support print error

tags/v1.1.0
baker 4 years ago
parent
commit
dd478ff5f2
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      ge/host_kernels/empty_kernel.cc
  2. +1
    -1
      ge/host_kernels/fill_kernel.cc

+ 1
- 1
ge/host_kernels/empty_kernel.cc View File

@@ -123,7 +123,7 @@ Status EmptyKernel::Compute(const OpDescPtr op_desc_ptr, const std::vector<Const
#undef CASE #undef CASE
default: default:
GELOGW("invalid data type: %s", TypeUtils::DataTypeToSerialString(data_type).c_str()); GELOGW("invalid data type: %s", TypeUtils::DataTypeToSerialString(data_type).c_str());
NOT_CHANGED;
return NOT_CHANGED;
} }


if (ret != SUCCESS) { if (ret != SUCCESS) {


+ 1
- 1
ge/host_kernels/fill_kernel.cc View File

@@ -106,7 +106,7 @@ Status FillKernel::Compute(const ge::OpDescPtr op_desc_ptr, const std::vector<ge
#undef CASE #undef CASE
default: default:
GELOGW("invalid data type: %s", TypeUtils::DataTypeToSerialString(data_type).c_str()); GELOGW("invalid data type: %s", TypeUtils::DataTypeToSerialString(data_type).c_str());
NOT_CHANGED;
return NOT_CHANGED;
} }
if (ret != SUCCESS) { if (ret != SUCCESS) {
GELOGE(ret, "GenData failed, data_type: %s", TypeUtils::DataTypeToSerialString(data_type).c_str()); GELOGE(ret, "GenData failed, data_type: %s", TypeUtils::DataTypeToSerialString(data_type).c_str());


Loading…
Cancel
Save