Browse Source

disable async run graph

tags/v1.1.0
kswang 5 years ago
parent
commit
1871138533
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

@@ -245,6 +245,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