!49757 [docs] Update tensor document

Merge pull request !49757 from shaojunsong/code_docs_I6IYEU
This commit is contained in:
i-robot 2023-03-03 09:51:20 +00:00 committed by Gitee
commit 19b42e372d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,9 @@ mindspore.Tensor
输出:
Tensor。
..note::
`input_data` 的默认值None只作为一个占位符并不意味着可以创建一个NoneType的Tensor。
.. mscnautosummary::
:toctree: Tensor
:nosignatures:

View File

@ -104,6 +104,10 @@ class Tensor(Tensor_, metaclass=_TensorMeta):
Outputs:
Tensor.
Note:
The default value None of `input_data` works as a placeholder, it does not mean that we can create a NoneType
Tensor.
Examples:
>>> import numpy as np
>>> import mindspore as ms