!41186 Supplement the docs for const_arg of Tensor

Merge pull request !41186 from YuJianfeng/code_docs
This commit is contained in:
i-robot 2022-08-31 03:23:10 +00:00 committed by Gitee
commit 0765c2cc3c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 3 additions and 2 deletions

View File

@ -12,4 +12,4 @@ mindspore.Tensor.set_const_arg
Tensor被指定了是否是一个常量网络入参。
异常:
- **TypeError** - 如果`const_arg`不是一个布尔值。
- **TypeError** - 如果 `const_arg` 不是一个布尔值。

View File

@ -1,7 +1,7 @@
mindspore.Tensor
================
.. py:class:: mindspore.Tensor(input_data=None, dtype=None, shape=None, init=None, internal=False)
.. py:class:: mindspore.Tensor(input_data=None, dtype=None, shape=None, init=None, internal=False, const_arg=False)
张量即存储多维数组n-dimensional array的数据结构。

View File

@ -249,6 +249,7 @@ Other Methods
:nosignatures:
mindspore.Tensor.flush_from_cache
mindspore.Tensor.set_const_arg
{% elif objname[0].istitle() %}
{{ fullname | underline }}