|
|
|
@@ -40,6 +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_INNER_ERROR("E19999", "CalcOpRunningParam failed, as op desc is null"); |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
|
|
|
|
@@ -76,6 +77,11 @@ Status HostCpuOpsKernelBuilder::CalcOpRunningParam(Node &ge_node) { |
|
|
|
GELOGE(FAILED, "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()); |
|
|
|
|
|
|
|
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()); |
|
|
|
|
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
GELOGI("Calc op[%s:%s] out[%zu] mem size is %ld, format=%s, data_type=%s.", |
|
|
|
@@ -86,6 +92,10 @@ Status HostCpuOpsKernelBuilder::CalcOpRunningParam(Node &ge_node) { |
|
|
|
if (op_desc->UpdateOutputDesc(static_cast<uint32_t>(i), output_tensor) != GRAPH_SUCCESS) { |
|
|
|
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, |
|
|
|
TypeUtils::FormatToSerialString(format).c_str(), TypeUtils::DataTypeToSerialString(data_type).c_str()); |
|
|
|
|
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
} |
|
|
|
|