forked from mindspore-Ecosystem/mindspore
!41186 Supplement the docs for const_arg of Tensor
Merge pull request !41186 from YuJianfeng/code_docs
This commit is contained in:
commit
0765c2cc3c
|
@ -12,4 +12,4 @@ mindspore.Tensor.set_const_arg
|
|||
Tensor,被指定了是否是一个常量网络入参。
|
||||
|
||||
异常:
|
||||
- **TypeError** - 如果`const_arg`不是一个布尔值。
|
||||
- **TypeError** - 如果 `const_arg` 不是一个布尔值。
|
||||
|
|
|
@ -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)的数据结构。
|
||||
|
||||
|
|
|
@ -249,6 +249,7 @@ Other Methods
|
|||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.flush_from_cache
|
||||
mindspore.Tensor.set_const_arg
|
||||
|
||||
{% elif objname[0].istitle() %}
|
||||
{{ fullname | underline }}
|
||||
|
|
Loading…
Reference in New Issue