From cdc0c42a67a35d5c96f3850249e10c0070a866a3 Mon Sep 17 00:00:00 2001 From: "gengchao4@huawei.com" Date: Tue, 8 Dec 2020 14:15:10 +0800 Subject: [PATCH] bugfix for attr update failed --- ge/graph/build/graph_builder.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/ge/graph/build/graph_builder.cc b/ge/graph/build/graph_builder.cc index 0fa1e1ee..e742a520 100644 --- a/ge/graph/build/graph_builder.cc +++ b/ge/graph/build/graph_builder.cc @@ -461,7 +461,6 @@ Status GraphBuilder::SetInputSize(const ge::NodePtr &node_ptr) { auto input_desc = node_op_desc->MutableInputDesc(in_data_anchor->GetIdx()); GE_CHECK_NOTNULL(input_desc); (void) ge::TensorUtils::SetSize(*input_desc, size); - GE_CHK_STATUS_RET(node_op_desc->UpdateInputDesc(in_data_anchor->GetIdx(), *input_desc)); GELOGD("%s input desc, dim_size: %zu, mem_size: %ld, format: %s, type: %s.", node_ptr->GetName().c_str(), input_desc->GetShape().GetDimNum(), size, TypeUtils::FormatToSerialString(input_desc->GetFormat()).c_str(), TypeUtils::DataTypeToSerialString(input_desc->GetDataType()).c_str());