modify some note

This commit is contained in:
liuyang_655 2022-04-19 08:27:37 -04:00
parent a7a9486d32
commit dbd039197c
4 changed files with 9 additions and 4 deletions

View File

@ -17,7 +17,7 @@
- [STABLE] Support dynamic weight decay for optimizers, that is weight decay value will change according to the increasing step during training.
- [STABLE] Add four methods to create Tensor, which are `mindspore.numpy.rand()`, `mindspore.numpy.randn()`, `mindspore.numpy.randint()`, and `mindspore.ops.arange()`.
- [STABLE] Add `mindspore.callback.History` and `mindspore.callback.LambdaCallback` in Callback.
- [STABLE] Add `mindspore.callback.History` in Callback.
- [BETA] Support custom operator implemented by Julia operator.
- [STABLE] Support accessing attributes and methods of user-defined classes through `mindspore.ms_class` class decorator.
- [STABLE] Support training when a network has side effect operations and control flow statements at the same time.

View File

@ -17,7 +17,7 @@
- [STABLE] 优化器支持动态权重衰减即训练期间权重衰减值随着step的增加而变化。
- [STABLE] 增加四种创建Tensor的方法分别是`mindspore.numpy.rand()`、`mindspore.numpy.randn()`、`mindspore.numpy.randint()`和`mindspore.ops.arange ()`。
- [STABLE] 增加两种callback方法 `mindspore.callback.History``mindspore.callback.LambdaCallback`。
- [STABLE] 增加一种callback方法 `mindspore.callback.History`。
- [BETA] 自定义算子支持Julia算子。
- [STABLE] 通过 `mindspore.ms_class` 类装饰器,支持获取用户自定义类的属性和方法。
- [STABLE] 支持同时存在副作用算子和控制流语句的网络的训练。

View File

@ -6,6 +6,9 @@
请注意callback的每个阶段都需要一个位置参数`run_context`
.. note::
- 这是一个会变更或删除的实验性接口。
**参数:**
- **epoch_begin** (Function) - 每个epoch开始时被调用。

View File

@ -22,9 +22,11 @@ class LambdaCallback(Callback):
Callback for creating simple, custom callbacks.
This callback is constructed with anonymous functions that will be called
at the appropriate time (during `mindspore.Model.{train | eval}`).
at the appropriate time (during `mindspore.Model.{train | eval}`). Note that
each stage of callbacks expects one positional arguments: `run_context`.
Note that each stage of callbacks expects one positional arguments: `run_context`.
Note:
This is an experimental interface that is subject to change or deletion.
Args:
epoch_begin (Function): called at the beginning of every epoch.