mindspore/docs/api/api_python/train/mindspore.train.callback.Le...

16 lines
427 B
ReStructuredText
Raw Normal View History

2021-12-02 09:29:36 +08:00
.. py:class:: mindspore.train.callback.LearningRateScheduler(learning_rate_function)
2021-12-28 20:07:42 +08:00
用于在训练期间更改学习率。
2021-12-02 09:29:36 +08:00
**参数:**
2021-12-04 20:36:47 +08:00
- **learning_rate_function** (Function) - 在训练期间更改学习率的函数。
2021-12-02 09:29:36 +08:00
.. py:method:: step_end(run_context)
在step结束时更改学习率。
**参数:**
2021-12-04 20:36:47 +08:00
- **run_context** (RunContext) - 包含模型的一些基本信息。