!10441 modify function train comment

From: @changzherui
Reviewed-by: @zh_qh,@kingxian
Signed-off-by: @kingxian
This commit is contained in:
mindspore-ci-bot 2020-12-25 09:26:51 +08:00 committed by Gitee
commit bd1ad0ea19
1 changed files with 2 additions and 1 deletions

View File

@ -554,7 +554,8 @@ class Model:
returned and passed to the network. Otherwise, a tuple (data, label) should
be returned. The data and label would be passed to the network and loss
function respectively.
callbacks (list): List of callback objects which should be executed while training. Default: None.
callbacks (list, object): List of callback objects or callback object, which should be executed
while training. Default: None.
dataset_sink_mode (bool): Determines whether to pass the data through dataset channel. Default: True.
Configure pynative mode or CPU, the training process will be performed with
dataset not sink.