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

Merge pull request !1667 from rick_sanchez/master
pull/1667/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 8fb315aa38

@ -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