fix bug for duplicated graph id in pynative cases.

pull/1667/head
rick_sanchez 5 years ago
parent 163eebf7b6
commit 1a997806b3

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