Browse Source

fix compile error

tags/v0.2.0-alpha
simson 5 years ago
parent
commit
a8bc8bfecb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/transform/graph_runner.cc

+ 1
- 1
mindspore/ccsrc/transform/graph_runner.cc View File

@@ -142,7 +142,7 @@ Status GraphRunner::RunGraph(const RunOptions& options, const std::vector<GeTens
// 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_, *(it->graph_ptr_), it->options_);
sess_->AddGraph(wrap_ptr->id_, *(wrap_ptr->graph_ptr_), wrap_ptr->options_);
}

ge::Status ret = sess_->RunGraph(wrap_ptr->id_, ge_inputs, ge_outputs);


Loading…
Cancel
Save