Skip to content

Commit

Permalink
Fix reference to dcp in loading example (#2972)
Browse files Browse the repository at this point in the history
* Fix reference to DCP
* Keep import style as saving

---------

Co-authored-by: Iris Z <[email protected]>
  • Loading branch information
angerrp and wz337 authored Sep 5, 2024
1 parent 0e530ea commit c2a8800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes_source/distributed_checkpoint_recipe.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ the intent is to save or load in "non-distributed" style, meaning entirely in th
import os
import torch
import torch.distributed.checkpoint as DCP
import torch.distributed.checkpoint as dcp
import torch.nn as nn
Expand Down

0 comments on commit c2a8800

Please sign in to comment.