Skip to content

Commit 17d4bc4

Browse files
authored
Merge pull request #66 from xiaoye-hua/bug_fix
更正7.3的笔误
2 parents f5661ac + 77d7659 commit 17d4bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/chapter07_optimization/7.3_minibatch-sgd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def train_tensorflow2_ch7(trainer_name, trainer_hyperparams, features, labels,
179179
```
180180
使用Tensorflow2重复上一个实验。
181181
``` python
182-
train_pytorch_ch7(optim.SGD, {"lr": 0.05}, features, labels, 10)
182+
train_tensorflow2_ch7('trainer', {'learning_rate': 0.05}, features, labels, 10)
183183
```
184184
输出:
185185
```

0 commit comments

Comments
 (0)