Skip to content

Commit 88294d9

Browse files
authored
fix_typo (#7282)
1 parent 0663360 commit 88294d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/paddle_v3_features/auto_parallel_cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,8 @@ opt = paddle.optimizer.AdamW(learning_rate=0.001, parameters=model.parameters())
751751
opt = dist.shard_optimizer(opt)
752752

753753
# 在模型训练阶段开始前加载
754-
dist.save_state_dict(model.state_dict(), './ckpt/model')
755-
dist.save_state_dict(opt.state_dict(), './ckpt/opt')
754+
dist.load_state_dict(model.state_dict(), './ckpt/model')
755+
dist.load_state_dict(opt.state_dict(), './ckpt/opt')
756756

757757
for step, inputs in enumerate(dataloader):
758758
data = inputs

0 commit comments

Comments
 (0)