Skip to content

Commit 5974b5c

Browse files
daleevansSvetlana Karslioglu
and
Svetlana Karslioglu
authored
Typo in tutorial, dist_barrier should be dist.barrier (#2281)
Co-authored-by: Svetlana Karslioglu <svekars@fb.com>
1 parent 116a54b commit 5974b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/FSDP_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ We add the following code snippets to a python script “FSDP_mnist.py”.
249249
250250
if args.save_model:
251251
# use a barrier to make sure training is done on all ranks
252-
dist_barrier()
252+
dist.barrier()
253253
# state_dict for FSDP model is only available on Nightlies for now
254254
states = model.state_dict()
255255
if rank == 0:

0 commit comments

Comments
 (0)