forked from mindspore-Ecosystem/mindspore
fix chinese api comments
This commit is contained in:
parent
cf5248276e
commit
d6dc279e04
|
@ -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。
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue