mindspore.ops.coo_acosh
- mindspore.ops.coo_acosh(x)[源代码]
- 逐元素计算输入COOTensor的反双曲余弦。 \[y_i = \cosh^{-1}(x_i)\]- 警告 - 给定一个输入COOTensor x ,该函数计算每个元素的反双曲余弦。输入范围为[1, inf]。 - 参数:
- x (COOTensor) - 需要计算反双曲余弦函数的输入COOTensor。 
 
- 返回:
- COOTensor,数据类型与 x 相同。 
- 异常:
- TypeError - x 不是COOTensor。 
 
- 支持平台:
- Ascend- GPU- CPU
 - 样例: - >>> from mindspore import dtype as mstype >>> from mindspore import Tensor, ops, COOTensor >>> indices = Tensor([[0, 1], [1, 2]], dtype=mstype.int64) >>> values = Tensor([-1, 2], dtype=mstype.float32) >>> shape = (3, 4) >>> x = COOTensor(indices, values, shape) >>> output = ops.coo_acosh(x) >>> print(output.values) [ nan 1.316958]