Browse Source

!1667 Fix bug for duplicated graph id in pynative cases.

Merge pull request !1667 from rick_sanchez/master
tags/v0.5.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
8fb315aa38
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      mindspore/ccsrc/pipeline/pipeline.cc

+ 3
- 1
mindspore/ccsrc/pipeline/pipeline.cc View File

@@ -760,7 +760,9 @@ bool InitExecDatasetVm(const std::string &queue_name, int64_t size, int64_t batc
// Convert CNodeList to LinConvertResult.
ConfigManager::GetInstance().set_iter_num(1);
auto runner = convert_fn({app_init});
backend->Link(runner.graph_id);
if (MsContext::GetInstance()->execution_mode() != kPynativeMode) {
backend->Link(runner.graph_id);
}
ConfigManager::GetInstance().set_iter_num(size);

if (!(*runner.run)) {


Loading…
Cancel
Save