Skip to content

Commit 757e361

Browse files
authored
Merge pull request #449 from lfchener/develop
update grad_clip to 1.8
2 parents 766e96e + 01019fb commit 757e361

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To avoid the trouble of environment setup, [running in Docker container](#runnin
2727

2828
### Prerequisites
2929
- Python 2.7 only supported
30-
- PaddlePaddle 1.6.0 or later (please refer to the [Installation Guide](https://www.paddlepaddle.org.cn/documentation/docs/en/beginners_guide/index_en.html))
30+
- PaddlePaddle 1.8.0 or later (please refer to the [Installation Guide](https://www.paddlepaddle.org.cn/documentation/docs/en/beginners_guide/index_en.html))
3131

3232
### Setup
3333
- Make sure these libraries or tools installed: `pkg-config`, `flac`, `ogg`, `vorbis`, `boost` and `swig`, e.g. installing them via `apt-get`:

README_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
### 前提
2727
- 只支持Python 2.7
28-
- PaddlePaddle 1.6.0 版本及以上(请参考[安装指南](https://www.paddlepaddle.org.cn/install/quick)
28+
- PaddlePaddle 1.8.0 版本及以上(请参考[安装指南](https://www.paddlepaddle.org.cn/install/quick)
2929

3030
### 安装
3131
- 请确保以下库或工具已安装完毕:`pkg-config`, `flac`, `ogg`, `vorbis`, `boost``swig`, 如可以通过`apt-get`安装:

model_utils/model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,8 @@ def train(self,
285285
learning_rate=learning_rate,
286286
decay_steps=num_samples / batch_size / dev_count,
287287
decay_rate=0.83,
288-
staircase=True))
289-
fluid.clip.set_gradient_clip(
290-
clip=fluid.clip.GradientClipByGlobalNorm(
288+
staircase=True),
289+
grad_clip=fluid.clip.GradientClipByGlobalNorm(
291290
clip_norm=gradient_clipping))
292291
optimizer.minimize(loss=ctc_loss)
293292

0 commit comments

Comments
 (0)