Browse Source

!1087 node_status bug fix

From: @isaacxr
Reviewed-by: @wqtshg,@xchu42
Signed-off-by: @wqtshg
tags/v1.2.0
mindspore-ci-bot Gitee 3 years ago
parent
commit
10df1f48aa
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ge/hybrid/executor/node_state.cc

+ 2
- 2
ge/hybrid/executor/node_state.cc View File

@@ -36,11 +36,11 @@ ShapeInferenceState::ShapeInferenceState(const NodeItem &node_item) : node_item(
this->num_pending_shapes_); this->num_pending_shapes_);


for (int i = 0; i < node_item.num_inputs; ++i){ for (int i = 0; i < node_item.num_inputs; ++i){
input_tensor_desc.emplace_back(std::move(*node_item.MutableInputDesc(i)));
input_tensor_desc.emplace_back(*node_item.MutableInputDesc(i));
} }


for (int i = 0; i < node_item.num_outputs; ++i){ for (int i = 0; i < node_item.num_outputs; ++i){
output_tensor_desc.emplace_back(std::move(*node_item.MutableOutputDesc(i)));
output_tensor_desc.emplace_back(*node_item.MutableOutputDesc(i));
} }
} }




Loading…
Cancel
Save