提交 663e3ab5 编写于 作者: T tianhao zhang

fix dp init

上级 08b9c458
......@@ -19,7 +19,9 @@ from pathlib import Path
import paddle
from paddle import distributed as dist
dist.init_parallel_env()
world_size = dist.get_world_size()
if world_size > 1:
dist.init_parallel_env()
from visualdl import LogWriter
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册