Browse Source

!7284 disable async run graph

Merge pull request !7284 from kisnwang/disable-async-run-graph
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
11058ad0ef
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      mindspore/ccsrc/backend/session/executor.cc

+ 4
- 0
mindspore/ccsrc/backend/session/executor.cc View File

@@ -252,6 +252,10 @@ void Executor::RunGraphAsync(const SessionPtr &session, const GraphId &graph_id,
const std::vector<tensor::TensorPtr> &inputs, VectorRef *outputs) {
MS_EXCEPTION_IF_NULL(session);
MS_EXCEPTION_IF_NULL(outputs);
if (session != nullptr) {
RunGraph(session, graph_id, inputs, outputs);
return;
}
auto task = std::make_shared<RunGraphTask>();
task->session_ = session;
task->graph_id_ = graph_id;


Loading…
Cancel
Save