Browse Source

!6331 Delete the useless code in graph runner

Merge pull request !6331 from chenhaozhe/delete-useless-code-master
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
5608a55b7e
1 changed files with 0 additions and 7 deletions
  1. +0
    -7
      mindspore/ccsrc/transform/graph_ir/graph_runner.cc

+ 0
- 7
mindspore/ccsrc/transform/graph_ir/graph_runner.cc View File

@@ -141,13 +141,6 @@ Status GraphRunner::RunGraph(const RunOptions &options, const std::vector<GeTens
return Status::FAILED;
}

// The information of some nodes could be changed after fusion in some cases
// Therefore a graph needs to be rebuilt in above situation
if (sess_->IsGraphNeedRebuild(wrap_ptr->id_)) {
sess_->RemoveGraph(wrap_ptr->id_);
sess_->AddGraph(wrap_ptr->id_, *(wrap_ptr->graph_ptr_), wrap_ptr->options_);
}

ge::Status ret = sess_->RunGraph(wrap_ptr->id_, ge_inputs, ge_outputs);
if (ret != ge::GRAPH_SUCCESS) {
MS_LOG(ERROR) << "Call GE RunGraph Failed, ret is: " << ret;


Loading…
Cancel
Save