[bugfix] save ir file failed

This commit is contained in:
lizhenyu 2020-10-14 11:32:54 +08:00
parent b80fa15918
commit 0611f6231a
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ if __name__ == "__main__":
context.set_context(mode=context.GRAPH_MODE, device_target=wide_deep_config.device_target, save_graphs=True)
init()
context.set_context(save_graphs_path='./graphs_of_device_id_'+str(get_rank()))
context.set_auto_parallel_context(parallel_mode=ParallelMode.DATA_PARALLEL, gradients_mean=True,
device_num=get_group_size())