From dc77502c9ed6f2c10fc5f0c9d2b4949bc1891aca Mon Sep 17 00:00:00 2001 From: changzherui Date: Mon, 6 Mar 2023 23:10:11 +0800 Subject: [PATCH] code docs --- docs/api/api_python/train/mindspore.train.Model.rst | 2 +- mindspore/python/mindspore/ops/function/math_func.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/api_python/train/mindspore.train.Model.rst b/docs/api/api_python/train/mindspore.train.Model.rst index 3d7c5a8965e..66cce02d2f0 100644 --- a/docs/api/api_python/train/mindspore.train.Model.rst +++ b/docs/api/api_python/train/mindspore.train.Model.rst @@ -173,4 +173,4 @@ 获得该模型的训练网络。 返回: - 预测网络实例。 + 训练网络实例。 diff --git a/mindspore/python/mindspore/ops/function/math_func.py b/mindspore/python/mindspore/ops/function/math_func.py index ae1d6b5d461..c241a7044b4 100644 --- a/mindspore/python/mindspore/ops/function/math_func.py +++ b/mindspore/python/mindspore/ops/function/math_func.py @@ -262,7 +262,7 @@ def add(input, other): .. note:: - Inputs of `input` and `other` comply with the implicit type conversion rules to make - the data types consistent. + the data types consistent. - The inputs must be two tensors or one tensor and one scalar. - When the inputs are two tensors, dtypes of them cannot be bool at the same time, and the shapes of them can be broadcast.