From f45f8363eb987ef25383c7d5a8419c60cd53e8ff Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Mon, 27 Jul 2020 11:11:47 +0800 Subject: [PATCH] records the offset of log when creating by paddle.distributed.launch (#25725) test=develop --- python/paddle/distributed/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/distributed/utils.py b/python/paddle/distributed/utils.py index 0bfd75b4994..7c8fa257f77 100644 --- a/python/paddle/distributed/utils.py +++ b/python/paddle/distributed/utils.py @@ -381,7 +381,7 @@ def start_local_trainers(cluster, tp.rank = t.rank tp.local_rank = idx tp.log_fn = fn - tp.log_offset = 0 if fn else None + tp.log_offset = fn.tell() if fn else None tp.cmd = cmd procs.append(tp) -- GitLab