forked from mindspore-Ecosystem/mindspore
!48954 add tensor acosh docs
Merge pull request !48954 from changzherui/code_dosc_tensor_acosh
This commit is contained in:
commit
f4db8c7496
|
@ -0,0 +1,6 @@
|
||||||
|
mindspore.Tensor.acosh
|
||||||
|
======================
|
||||||
|
|
||||||
|
.. py:method:: mindspore.Tensor.acosh()
|
||||||
|
|
||||||
|
详情请参考 :func:`mindspore.ops.acosh`。
|
|
@ -23,6 +23,7 @@ mindspore.Tensor
|
||||||
mindspore.Tensor.abs
|
mindspore.Tensor.abs
|
||||||
mindspore.Tensor.absolute
|
mindspore.Tensor.absolute
|
||||||
mindspore.Tensor.acos
|
mindspore.Tensor.acos
|
||||||
|
mindspore.Tensor.acosh
|
||||||
mindspore.Tensor.add
|
mindspore.Tensor.add
|
||||||
mindspore.Tensor.addbmm
|
mindspore.Tensor.addbmm
|
||||||
mindspore.Tensor.addcdiv
|
mindspore.Tensor.addcdiv
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
mindspore.Tensor.abs
|
mindspore.Tensor.abs
|
||||||
mindspore.Tensor.absolute
|
mindspore.Tensor.absolute
|
||||||
mindspore.Tensor.acos
|
mindspore.Tensor.acos
|
||||||
|
mindspore.Tensor.acosh
|
||||||
mindspore.Tensor.add
|
mindspore.Tensor.add
|
||||||
mindspore.Tensor.addbmm
|
mindspore.Tensor.addbmm
|
||||||
mindspore.Tensor.addcdiv
|
mindspore.Tensor.addcdiv
|
||||||
|
|
|
@ -1175,29 +1175,8 @@ class Tensor(Tensor_):
|
||||||
return tensor_operator_registry.get('cov')(self, correction=correction, fweights=fweights, aweights=aweights)
|
return tensor_operator_registry.get('cov')(self, correction=correction, fweights=fweights, aweights=aweights)
|
||||||
|
|
||||||
def acosh(self):
|
def acosh(self):
|
||||||
r"""
|
"""
|
||||||
Computes inverse hyperbolic cosine of the inputs element-wise.
|
For details, please refer to :func:`mindspore.ops.acosh`.
|
||||||
|
|
||||||
.. math::
|
|
||||||
|
|
||||||
out_i = \cosh^{-1}(input_i)
|
|
||||||
|
|
||||||
.. warning::
|
|
||||||
Given an input tensor x, the function computes inverse hyperbolic cosine of every element.
|
|
||||||
Input range is [1, inf].
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
Tensor, has the same shape as `x`.
|
|
||||||
|
|
||||||
Supported Platforms:
|
|
||||||
``Ascend`` ``GPU`` ``CPU``
|
|
||||||
|
|
||||||
Examples:
|
|
||||||
>>> from mindspore import Tensor
|
|
||||||
>>> a = Tensor(np.array([1.0, 1.5, 3.0, 100.0]), mindspore.float32)
|
|
||||||
>>> output = a.acosh()
|
|
||||||
>>> print(output)
|
|
||||||
[0. 0.9624237 1.7627472 5.298292]
|
|
||||||
"""
|
"""
|
||||||
self._init_check()
|
self._init_check()
|
||||||
return tensor_operator_registry.get('acosh')(self)
|
return tensor_operator_registry.get('acosh')(self)
|
||||||
|
|
Loading…
Reference in New Issue