fix chinese api comments

This commit is contained in:
liutongtong 2022-02-28 18:56:22 +08:00
parent cf5248276e
commit d6dc279e04
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ mindspore.Tensor
- **dtype** (:class:`mindspore.dtype`) - 用于定义该Tensor的数据类型必须是 *mindSpore.dtype* 中定义的类型。如果该参数为None则数据类型与 `input_data` 一致默认值None。
- **shape** (Union[tuple, list, int]) - 用于定义该Tensor的形状。如果指定了 `input_data` 则无需设置该参数。默认值None。
- **init** (Initializer) - 用于在并行模式中延迟Tensor的数据的初始化如果指定该参数`dtype``shape` 也必须被指定。不推荐在非自动并行之外的场景下使用该接口。只有当调用 `Tensor.init_data` 时,才会使用指定的 `init` 来初始化Tensor数据。默认值None。
- **internal** (bool) - Tensor是否由框架创建。 如果为True表示Tensor是由框架创建的如果为False表示Tensor是由用户创建的。默认值False。
**输出:**
Tensor。

View File

@ -50,7 +50,7 @@ class Tensor(Tensor_):
'init' interface to initialize Tensor in the other conditions. If 'init' interface is used to initialize
Tensor, the `Tensor.init_data` API needs to be called to convert `Tensor` to the actual data.
Default: None.
internal (bool): Whether it is the user's input.
internal (bool): Whether it is created by the framework.
'True' means that the tensor is created by framework.
'False' means that the tensor is created by user.
Default: False