Browse Source

!552 bugfix for attr update failed

From: @ni100die
Reviewed-by: @xchu42,@ji_chen
Signed-off-by: @ji_chen
tags/v1.2.0
mindspore-ci-bot Gitee 3 years ago
parent
commit
403146fb1c
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      ge/graph/build/graph_builder.cc

+ 0
- 1
ge/graph/build/graph_builder.cc View File

@@ -512,7 +512,6 @@ Status GraphBuilder::SetInputSize(const ge::NodePtr &node_ptr) {
auto input_desc = node_op_desc->MutableInputDesc(in_data_anchor->GetIdx()); auto input_desc = node_op_desc->MutableInputDesc(in_data_anchor->GetIdx());
GE_CHECK_NOTNULL(input_desc); GE_CHECK_NOTNULL(input_desc);
(void) ge::TensorUtils::SetSize(*input_desc, size); (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(), 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(), input_desc->GetShape().GetDimNum(), size, TypeUtils::FormatToSerialString(input_desc->GetFormat()).c_str(),
TypeUtils::DataTypeToSerialString(input_desc->GetDataType()).c_str()); TypeUtils::DataTypeToSerialString(input_desc->GetDataType()).c_str());


Loading…
Cancel
Save