Skip to content

Commit 1e157d2

Browse files
authored
Merge branch 'main' into pianpwk/export_ds_1_2025
2 parents b720e32 + 33a52a5 commit 1e157d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

intermediate_source/FSDP_tutorial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ We add the following code snippets to a python script “FSDP_mnist.py”.
251251
init_end_event.record()
252252
253253
if rank == 0:
254+
init_end_event.synchronize()
254255
print(f"CUDA event elapsed time: {init_start_event.elapsed_time(init_end_event) / 1000}sec")
255256
print(f"{model}")
256257

0 commit comments

Comments
 (0)