Skip to content

Commit 7bd2308

Browse files
committed
add annotation
1 parent 39b79c0 commit 7bd2308

File tree

1 file changed

+1
-0
lines changed
  • python/paddle/distributed/auto_parallel

1 file changed

+1
-0
lines changed

python/paddle/distributed/auto_parallel/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def lazy_init_hook(param, origin_hook):
196196
# lazy init hook with randomness controlling
197197
def _init_func(var, block):
198198
if dist.get_rank() not in param.process_mesh.process_ids:
199+
# None calc rank, just return no init.
199200
return
200201
# get the unique rng name
201202
rng_name = determinate_rng(

0 commit comments

Comments
 (0)