forked from mindspore-Ecosystem/mindspore
!39729 classify Tensor
Merge pull request !39729 from luojianing/code_docs_master
This commit is contained in:
commit
74d8633565
|
@ -15,91 +15,169 @@ mindspore.Tensor
|
|||
输出:
|
||||
Tensor。
|
||||
|
||||
|
||||
神经网络层方法
|
||||
----------------
|
||||
|
||||
神经网络
|
||||
^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.flatten
|
||||
|
||||
激活函数
|
||||
^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.hardshrink
|
||||
mindspore.Tensor.soft_shrink
|
||||
|
||||
数学运算方法
|
||||
----------------
|
||||
|
||||
逐元素运算
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.abs
|
||||
mindspore.Tensor.addcdiv
|
||||
mindspore.Tensor.addcmul
|
||||
mindspore.Tensor.all
|
||||
mindspore.Tensor.any
|
||||
mindspore.Tensor.approximate_equal
|
||||
mindspore.Tensor.argmax
|
||||
mindspore.Tensor.argmin
|
||||
mindspore.Tensor.argmin_with_value
|
||||
mindspore.Tensor.asnumpy
|
||||
mindspore.Tensor.assign_value
|
||||
mindspore.Tensor.astype
|
||||
mindspore.Tensor.atan2
|
||||
mindspore.Tensor.bernoulli
|
||||
mindspore.Tensor.bitwise_and
|
||||
mindspore.Tensor.bitwise_or
|
||||
mindspore.Tensor.bitwise_xor
|
||||
mindspore.Tensor.broadcast_to
|
||||
mindspore.Tensor.ceil
|
||||
mindspore.Tensor.cosh
|
||||
mindspore.Tensor.erf
|
||||
mindspore.Tensor.erfc
|
||||
mindspore.Tensor.inv
|
||||
mindspore.Tensor.invert
|
||||
mindspore.Tensor.lerp
|
||||
mindspore.Tensor.log1p
|
||||
mindspore.Tensor.logit
|
||||
mindspore.Tensor.pow
|
||||
mindspore.Tensor.round
|
||||
mindspore.Tensor.std
|
||||
mindspore.Tensor.svd
|
||||
mindspore.Tensor.tan
|
||||
mindspore.Tensor.var
|
||||
mindspore.Tensor.xdivy
|
||||
mindspore.Tensor.xlogy
|
||||
|
||||
Reduction方法
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.argmax
|
||||
mindspore.Tensor.argmin
|
||||
mindspore.Tensor.argmin_with_value
|
||||
mindspore.Tensor.max
|
||||
mindspore.Tensor.mean
|
||||
mindspore.Tensor.min
|
||||
mindspore.Tensor.norm
|
||||
mindspore.Tensor.prod
|
||||
mindspore.Tensor.renorm
|
||||
|
||||
比较方法
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.all
|
||||
mindspore.Tensor.any
|
||||
mindspore.Tensor.approximate_equal
|
||||
mindspore.Tensor.has_init
|
||||
mindspore.Tensor.isclose
|
||||
mindspore.Tensor.top_k
|
||||
|
||||
线性代数方法
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.ger
|
||||
mindspore.Tensor.log_matrix_determinant
|
||||
mindspore.Tensor.matrix_determinant
|
||||
|
||||
Tensor操作方法
|
||||
----------------
|
||||
|
||||
Tensor创建
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.choose
|
||||
mindspore.Tensor.clip
|
||||
mindspore.Tensor.fill
|
||||
mindspore.Tensor.fills
|
||||
mindspore.Tensor.view
|
||||
|
||||
随机生成方法
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.random_categorical
|
||||
|
||||
Array操作
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.broadcast_to
|
||||
mindspore.Tensor.col2im
|
||||
mindspore.Tensor.copy
|
||||
mindspore.Tensor.cosh
|
||||
mindspore.Tensor.cummax
|
||||
mindspore.Tensor.cummin
|
||||
mindspore.Tensor.cumsum
|
||||
mindspore.Tensor.diag
|
||||
mindspore.Tensor.diagonal
|
||||
mindspore.Tensor.dtype
|
||||
mindspore.Tensor.erf
|
||||
mindspore.Tensor.erfc
|
||||
mindspore.Tensor.expand_as
|
||||
mindspore.Tensor.expand_dims
|
||||
mindspore.Tensor.fill
|
||||
mindspore.Tensor.fills
|
||||
mindspore.Tensor.flatten
|
||||
mindspore.Tensor.flush_from_cache
|
||||
mindspore.Tensor.from_numpy
|
||||
mindspore.Tensor.gather
|
||||
mindspore.Tensor.gather_elements
|
||||
mindspore.Tensor.gather_nd
|
||||
mindspore.Tensor.ger
|
||||
mindspore.Tensor.hardshrink
|
||||
mindspore.Tensor.has_init
|
||||
mindspore.Tensor.index_fill
|
||||
mindspore.Tensor.init_data
|
||||
mindspore.Tensor.inplace_update
|
||||
mindspore.Tensor.inv
|
||||
mindspore.Tensor.invert
|
||||
mindspore.Tensor.isclose
|
||||
mindspore.Tensor.isfinite
|
||||
mindspore.Tensor.item
|
||||
mindspore.Tensor.itemset
|
||||
mindspore.Tensor.itemsize
|
||||
mindspore.Tensor.lerp
|
||||
mindspore.Tensor.log1p
|
||||
mindspore.Tensor.log_matrix_determinant
|
||||
mindspore.Tensor.logit
|
||||
mindspore.Tensor.masked_fill
|
||||
mindspore.Tensor.masked_select
|
||||
mindspore.Tensor.matrix_determinant
|
||||
mindspore.Tensor.max
|
||||
mindspore.Tensor.mean
|
||||
mindspore.Tensor.median
|
||||
mindspore.Tensor.min
|
||||
mindspore.Tensor.narrow
|
||||
mindspore.Tensor.nbytes
|
||||
mindspore.Tensor.ndim
|
||||
mindspore.Tensor.nonzero
|
||||
mindspore.Tensor.norm
|
||||
mindspore.Tensor.pow
|
||||
mindspore.Tensor.prod
|
||||
mindspore.Tensor.narrow
|
||||
mindspore.Tensor.ptp
|
||||
mindspore.Tensor.random_categorical
|
||||
mindspore.Tensor.ravel
|
||||
mindspore.Tensor.renorm
|
||||
mindspore.Tensor.repeat
|
||||
mindspore.Tensor.reshape
|
||||
mindspore.Tensor.resize
|
||||
mindspore.Tensor.round
|
||||
mindspore.Tensor.scatter_add
|
||||
mindspore.Tensor.scatter_div
|
||||
mindspore.Tensor.scatter_max
|
||||
|
@ -110,20 +188,13 @@ mindspore.Tensor
|
|||
mindspore.Tensor.select
|
||||
mindspore.Tensor.shape
|
||||
mindspore.Tensor.size
|
||||
mindspore.Tensor.soft_shrink
|
||||
mindspore.Tensor.split
|
||||
mindspore.Tensor.squeeze
|
||||
mindspore.Tensor.std
|
||||
mindspore.Tensor.strides
|
||||
mindspore.Tensor.sum
|
||||
mindspore.Tensor.svd
|
||||
mindspore.Tensor.swapaxes
|
||||
mindspore.Tensor.T
|
||||
mindspore.Tensor.take
|
||||
mindspore.Tensor.tan
|
||||
mindspore.Tensor.top_k
|
||||
mindspore.Tensor.to_coo
|
||||
mindspore.Tensor.to_csr
|
||||
mindspore.Tensor.to_tensor
|
||||
mindspore.Tensor.trace
|
||||
mindspore.Tensor.transpose
|
||||
|
@ -132,7 +203,43 @@ mindspore.Tensor
|
|||
mindspore.Tensor.unsorted_segment_max
|
||||
mindspore.Tensor.unsorted_segment_min
|
||||
mindspore.Tensor.unsorted_segment_prod
|
||||
mindspore.Tensor.var
|
||||
mindspore.Tensor.view
|
||||
mindspore.Tensor.xdivy
|
||||
mindspore.Tensor.xlogy
|
||||
|
||||
类型转换
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.asnumpy
|
||||
mindspore.Tensor.astype
|
||||
mindspore.Tensor.from_numpy
|
||||
mindspore.Tensor.to_coo
|
||||
mindspore.Tensor.to_csr
|
||||
|
||||
梯度剪裁
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.clip
|
||||
|
||||
Parameter操作方法
|
||||
--------------------
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.assign_value
|
||||
|
||||
其他方法
|
||||
--------------------
|
||||
|
||||
.. mscnplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.flush_from_cache
|
||||
|
|
|
@ -15,89 +15,168 @@
|
|||
|
||||
.. autoclass:: {{ name }}
|
||||
|
||||
Neural Network Layer Methods
|
||||
----------------------------
|
||||
|
||||
Neural Network
|
||||
^^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.flatten
|
||||
|
||||
Activation Function
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.hardshrink
|
||||
mindspore.Tensor.soft_shrink
|
||||
|
||||
Mathematical Methods
|
||||
--------------------
|
||||
|
||||
Element-wise Methods
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.abs
|
||||
mindspore.Tensor.addcdiv
|
||||
mindspore.Tensor.addcmul
|
||||
mindspore.Tensor.all
|
||||
mindspore.Tensor.any
|
||||
mindspore.Tensor.approximate_equal
|
||||
mindspore.Tensor.argmax
|
||||
mindspore.Tensor.argmin
|
||||
mindspore.Tensor.argmin_with_value
|
||||
mindspore.Tensor.asnumpy
|
||||
mindspore.Tensor.assign_value
|
||||
mindspore.Tensor.astype
|
||||
mindspore.Tensor.atan2
|
||||
mindspore.Tensor.bernoulli
|
||||
mindspore.Tensor.bitwise_and
|
||||
mindspore.Tensor.bitwise_or
|
||||
mindspore.Tensor.bitwise_xor
|
||||
mindspore.Tensor.broadcast_to
|
||||
mindspore.Tensor.ceil
|
||||
mindspore.Tensor.cosh
|
||||
mindspore.Tensor.erf
|
||||
mindspore.Tensor.erfc
|
||||
mindspore.Tensor.inv
|
||||
mindspore.Tensor.invert
|
||||
mindspore.Tensor.lerp
|
||||
mindspore.Tensor.log1p
|
||||
mindspore.Tensor.logit
|
||||
mindspore.Tensor.pow
|
||||
mindspore.Tensor.round
|
||||
mindspore.Tensor.std
|
||||
mindspore.Tensor.svd
|
||||
mindspore.Tensor.tan
|
||||
mindspore.Tensor.var
|
||||
mindspore.Tensor.xdivy
|
||||
mindspore.Tensor.xlogy
|
||||
|
||||
Reduction Methods
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.argmax
|
||||
mindspore.Tensor.argmin
|
||||
mindspore.Tensor.argmin_with_value
|
||||
mindspore.Tensor.max
|
||||
mindspore.Tensor.mean
|
||||
mindspore.Tensor.min
|
||||
mindspore.Tensor.norm
|
||||
mindspore.Tensor.prod
|
||||
mindspore.Tensor.renorm
|
||||
|
||||
Comparison Methods
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.all
|
||||
mindspore.Tensor.any
|
||||
mindspore.Tensor.approximate_equal
|
||||
mindspore.Tensor.has_init
|
||||
mindspore.Tensor.isclose
|
||||
mindspore.Tensor.top_k
|
||||
|
||||
Linear Algebraic Methods
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.ger
|
||||
mindspore.Tensor.log_matrix_determinant
|
||||
mindspore.Tensor.matrix_determinant
|
||||
|
||||
Tensor Operation Methods
|
||||
------------------------
|
||||
|
||||
Tensor Construction
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.choose
|
||||
mindspore.Tensor.clip
|
||||
mindspore.Tensor.fill
|
||||
mindspore.Tensor.fills
|
||||
mindspore.Tensor.view
|
||||
|
||||
Random Generation Methods
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.random_categorical
|
||||
|
||||
Array Methods
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.broadcast_to
|
||||
mindspore.Tensor.col2im
|
||||
mindspore.Tensor.copy
|
||||
mindspore.Tensor.cosh
|
||||
mindspore.Tensor.cummax
|
||||
mindspore.Tensor.cummin
|
||||
mindspore.Tensor.cumsum
|
||||
mindspore.Tensor.diag
|
||||
mindspore.Tensor.diagonal
|
||||
mindspore.Tensor.dtype
|
||||
mindspore.Tensor.erf
|
||||
mindspore.Tensor.erfc
|
||||
mindspore.Tensor.expand_as
|
||||
mindspore.Tensor.expand_dims
|
||||
mindspore.Tensor.fill
|
||||
mindspore.Tensor.fills
|
||||
mindspore.Tensor.flatten
|
||||
mindspore.Tensor.flush_from_cache
|
||||
mindspore.Tensor.from_numpy
|
||||
mindspore.Tensor.gather
|
||||
mindspore.Tensor.gather_elements
|
||||
mindspore.Tensor.gather_nd
|
||||
mindspore.Tensor.ger
|
||||
mindspore.Tensor.hardshrink
|
||||
mindspore.Tensor.has_init
|
||||
mindspore.Tensor.index_fill
|
||||
mindspore.Tensor.init_data
|
||||
mindspore.Tensor.inplace_update
|
||||
mindspore.Tensor.inv
|
||||
mindspore.Tensor.invert
|
||||
mindspore.Tensor.isclose
|
||||
mindspore.Tensor.item
|
||||
mindspore.Tensor.itemset
|
||||
mindspore.Tensor.itemsize
|
||||
mindspore.Tensor.lerp
|
||||
mindspore.Tensor.log1p
|
||||
mindspore.Tensor.log_matrix_determinant
|
||||
mindspore.Tensor.logit
|
||||
mindspore.Tensor.masked_fill
|
||||
mindspore.Tensor.masked_select
|
||||
mindspore.Tensor.matrix_determinant
|
||||
mindspore.Tensor.max
|
||||
mindspore.Tensor.mean
|
||||
mindspore.Tensor.min
|
||||
mindspore.Tensor.narrow
|
||||
mindspore.Tensor.nbytes
|
||||
mindspore.Tensor.ndim
|
||||
mindspore.Tensor.nonzero
|
||||
mindspore.Tensor.norm
|
||||
mindspore.Tensor.pow
|
||||
mindspore.Tensor.prod
|
||||
mindspore.Tensor.narrow
|
||||
mindspore.Tensor.ptp
|
||||
mindspore.Tensor.random_categorical
|
||||
mindspore.Tensor.ravel
|
||||
mindspore.Tensor.renorm
|
||||
mindspore.Tensor.repeat
|
||||
mindspore.Tensor.reshape
|
||||
mindspore.Tensor.resize
|
||||
mindspore.Tensor.round
|
||||
mindspore.Tensor.scatter_add
|
||||
mindspore.Tensor.scatter_div
|
||||
mindspore.Tensor.scatter_max
|
||||
|
@ -108,20 +187,13 @@
|
|||
mindspore.Tensor.select
|
||||
mindspore.Tensor.shape
|
||||
mindspore.Tensor.size
|
||||
mindspore.Tensor.soft_shrink
|
||||
mindspore.Tensor.split
|
||||
mindspore.Tensor.squeeze
|
||||
mindspore.Tensor.std
|
||||
mindspore.Tensor.strides
|
||||
mindspore.Tensor.sum
|
||||
mindspore.Tensor.svd
|
||||
mindspore.Tensor.swapaxes
|
||||
mindspore.Tensor.T
|
||||
mindspore.Tensor.take
|
||||
mindspore.Tensor.tan
|
||||
mindspore.Tensor.top_k
|
||||
mindspore.Tensor.to_coo
|
||||
mindspore.Tensor.to_csr
|
||||
mindspore.Tensor.to_tensor
|
||||
mindspore.Tensor.trace
|
||||
mindspore.Tensor.transpose
|
||||
|
@ -130,10 +202,46 @@
|
|||
mindspore.Tensor.unsorted_segment_max
|
||||
mindspore.Tensor.unsorted_segment_min
|
||||
mindspore.Tensor.unsorted_segment_prod
|
||||
mindspore.Tensor.var
|
||||
mindspore.Tensor.view
|
||||
mindspore.Tensor.xdivy
|
||||
mindspore.Tensor.xlogy
|
||||
|
||||
Type Conversion
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.asnumpy
|
||||
mindspore.Tensor.astype
|
||||
mindspore.Tensor.from_numpy
|
||||
mindspore.Tensor.to_coo
|
||||
mindspore.Tensor.to_csr
|
||||
|
||||
Gradient Clipping
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.clip
|
||||
|
||||
Parameter Operation Methods
|
||||
--------------------
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.assign_value
|
||||
|
||||
Other Methods
|
||||
--------------------
|
||||
|
||||
.. msplatformautosummary::
|
||||
:toctree: Tensor
|
||||
:nosignatures:
|
||||
|
||||
mindspore.Tensor.flush_from_cache
|
||||
|
||||
{% elif objname[0].istitle() %}
|
||||
{{ fullname | underline }}
|
||||
|
|
Loading…
Reference in New Issue