records the offset of log when creating by paddle.distributed.launch (#25725)

test=develop
fix_copy_if_different
Yi Liu 5 years ago committed by GitHub
parent 4fd558556a
commit f45f8363eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save