Browse Source

update and report errmsg

pull/1235/head
liudingyan 5 years ago
parent
commit
000c5694a6
3 changed files with 6 additions and 6 deletions
  1. +1
    -1
      ge/host_cpu_engine/engine/host_cpu_engine.cc
  2. +3
    -3
      ge/host_cpu_engine/ops_kernel_store/host_cpu_ops_kernel_builder.cc
  3. +2
    -2
      ge/host_cpu_engine/ops_kernel_store/op/op_factory.cc

+ 1
- 1
ge/host_cpu_engine/engine/host_cpu_engine.cc View File

@@ -36,7 +36,7 @@ Status HostCpuEngine::Initialize(const std::map<string, string> &options) {
if (ops_kernel_store_ == nullptr) {
GELOGE(FAILED, "Make HostCpuOpsKernelInfoStore failed.");
REPORT_INNER_ERROR("E19999", "Make HostCpuOpsKernelInfoStore failed.");
REPORT_INNER_ERROR("E19999", "Make HostCpuOpsKernelInfoStore failed.");
return FAILED;
}
}


+ 3
- 3
ge/host_cpu_engine/ops_kernel_store/host_cpu_ops_kernel_builder.cc View File

@@ -40,7 +40,7 @@ Status HostCpuOpsKernelBuilder::CalcOpRunningParam(Node &ge_node) {
OpDescPtr op_desc = ge_node.GetOpDesc();
if (op_desc == nullptr) {
GELOGE(FAILED, "CalcOpRunningParam failed, as op desc is null");
REPORT_INPUT_ERROR("E19999", "CalcOpRunningParam failed, as op desc is null");
REPORT_INNER_ERROR("E19999", "CalcOpRunningParam failed, as op desc is null");
return FAILED;
}

@@ -78,7 +78,7 @@ Status HostCpuOpsKernelBuilder::CalcOpRunningParam(Node &ge_node) {
name.c_str(), type.c_str(), i, output_mem_size, TypeUtils::FormatToSerialString(format).c_str(),
TypeUtils::DataTypeToSerialString(data_type).c_str());
REPORT_INNER_ERROR("E19999", "Calc op[%s:%s] out[%zu] mem size failed, mem_size=%ld, format=%s, data_type=%s.",
REPORT_INNER_ERROR("E19999", "Calc op[%s:%s] out[%zu] mem size failed, mem_size=%ld, format=%s, data_type=%s.",
name.c_str(), type.c_str(), i, output_mem_size, TypeUtils::FormatToSerialString(format).c_str(),
TypeUtils::DataTypeToSerialString(data_type).c_str());
@@ -93,7 +93,7 @@ Status HostCpuOpsKernelBuilder::CalcOpRunningParam(Node &ge_node) {
GELOGE(FAILED, "Update op[%s:%s] out[%zu] desc failed, format=%s, data_type=%s.", name.c_str(), type.c_str(), i,
TypeUtils::FormatToSerialString(format).c_str(), TypeUtils::DataTypeToSerialString(data_type).c_str());
REPORT_INNER_ERROR("E19999", "Update op[%s:%s] out[%zu] desc failed, format=%s, data_type=%s.", name.c_str(), type.c_str(), i,
REPORT_INNER_ERROR("E19999", "Update op[%s:%s] out[%zu] desc failed, format=%s, data_type=%s.", name.c_str(), type.c_str(), i,
TypeUtils::FormatToSerialString(format).c_str(), TypeUtils::DataTypeToSerialString(data_type).c_str());
return FAILED;


+ 2
- 2
ge/host_cpu_engine/ops_kernel_store/op/op_factory.cc View File

@@ -32,8 +32,8 @@ std::shared_ptr<Op> OpFactory::CreateOp(const Node &node, RunContext &run_contex
return iter->second(node, run_context);
}

GELOGE(FAILED, "Not supported OP, type = %s, name = %s", node.GetType().c_str(), node.GetName().c_str());
REPORT_INPUT_ERROR("E19999", "CreateOp failed, node_type = %s, node_name = %s", node.GetType().c_str(), node.GetName().c_str());
GELOGE(FAILED, "Create OP failed ! node_type = %s, node_name = %s", node.GetType().c_str(), node.GetName().c_str());
REPORT_INNER_ERROR("E19999", "CreateOp failed, node_type = %s, node_name = %s", node.GetType().c_str(), node.GetName().c_str());
return nullptr;
}


Loading…
Cancel
Save