Browse Source

fix bug for duplicated graph id in pynative cases.

tags/v0.5.0-beta
rick_sanchez 5 years ago
parent
commit
1a997806b3
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

@@ -761,7 +761,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