Skip to content

Commit ab10ae5

Browse files
committed
Keep import style as saving
1 parent 267dab9 commit ab10ae5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes_source/distributed_checkpoint_recipe.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ the intent is to save or load in "non-distributed" style, meaning entirely in th
237237
import os
238238
239239
import torch
240-
import torch.distributed.checkpoint as DCP
240+
import torch.distributed.checkpoint as dcp
241241
import torch.nn as nn
242242
243243
@@ -263,7 +263,7 @@ the intent is to save or load in "non-distributed" style, meaning entirely in th
263263
}
264264
265265
# since no progress group is initialized, DCP will disable any collectives.
266-
DCP.load(
266+
dcp.load(
267267
state_dict=state_dict,
268268
checkpoint_id=CHECKPOINT_DIR,
269269
)

0 commit comments

Comments
 (0)