|
@@ -210,7 +210,7 @@ void from_json(const Json &j, SingleOpTensorDesc &desc) { |
|
|
desc.dynamic_input_name = dynamic_input_name->get<string>(); |
|
|
desc.dynamic_input_name = dynamic_input_name->get<string>(); |
|
|
} |
|
|
} |
|
|
if (!is_tensor_valid) { |
|
|
if (!is_tensor_valid) { |
|
|
ge::AttrUtils::SetBool(&desc, kSingleOpTensorDescValid, is_tensor_valid); |
|
|
|
|
|
|
|
|
desc.SetValidFlag(is_tensor_valid); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -315,7 +315,7 @@ bool SingleOpParser::Validate(const SingleOpDesc &op_desc) { |
|
|
|
|
|
|
|
|
int index = 0; |
|
|
int index = 0; |
|
|
for (auto &tensor_desc : op_desc.input_desc) { |
|
|
for (auto &tensor_desc : op_desc.input_desc) { |
|
|
if (ge::AttrUtils::GetBool(&tensor_desc)) { |
|
|
|
|
|
|
|
|
if (!tensor_desc.GetValidFlag()) { |
|
|
ErrorManager::GetInstance().ATCReportErrMessage("E10027", {"input", "type", "index"}, |
|
|
ErrorManager::GetInstance().ATCReportErrMessage("E10027", {"input", "type", "index"}, |
|
|
{"intput", "datatype or format", std::to_string(index)}); |
|
|
{"intput", "datatype or format", std::to_string(index)}); |
|
|
GELOGE(PARAM_INVALID, "Input's dataType or format is invalid when the index is %d", index); |
|
|
GELOGE(PARAM_INVALID, "Input's dataType or format is invalid when the index is %d", index); |
|
@@ -333,7 +333,7 @@ bool SingleOpParser::Validate(const SingleOpDesc &op_desc) { |
|
|
|
|
|
|
|
|
index = 0; |
|
|
index = 0; |
|
|
for (auto &tensor_desc : op_desc.output_desc) { |
|
|
for (auto &tensor_desc : op_desc.output_desc) { |
|
|
if (ge::AttrUtils::GetBool(&tensor_desc)) { |
|
|
|
|
|
|
|
|
if (!tensor_desc.GetValidFlag()) { |
|
|
ErrorManager::GetInstance().ATCReportErrMessage("E10027", {"input", "type", "index"}, |
|
|
ErrorManager::GetInstance().ATCReportErrMessage("E10027", {"input", "type", "index"}, |
|
|
{"output", "datatype", std::to_string(index)}); |
|
|
{"output", "datatype", std::to_string(index)}); |
|
|
GELOGE(PARAM_INVALID, "Output's dataType is invalid when the index is %d", index); |
|
|
GELOGE(PARAM_INVALID, "Output's dataType is invalid when the index is %d", index); |
|
|