!48954 add tensor acosh docs

Merge pull request !48954 from changzherui/code_dosc_tensor_acosh
This commit is contained in:
i-robot 2023-02-17 06:49:57 +00:00 committed by Gitee
commit f4db8c7496
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 10 additions and 23 deletions

View File

@ -0,0 +1,6 @@
mindspore.Tensor.acosh
======================
.. py:method:: mindspore.Tensor.acosh()
详情请参考 :func:`mindspore.ops.acosh`

View File

@ -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

View File

@ -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

View File

@ -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)