mindspore/docs/api/api_python/numpy/mindspore.numpy.logaddexp.rst

18 lines
725 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.numpy.logaddexp
=========================
.. py:function:: mindspore.numpy.logaddexp(x1, x2, dtype=None)
计算输入指数取幂的和的对数。 计算 ``log(exp(x1) + exp(x2))``
.. note::
不支持NumPy参数 `out``where``casting``order``subok``signature``extobj`
参数:
- **x1** (Tensor) - 输入数组。
- **x2** (Tensor) - 输入数组。 如果 `x1.shape != x2.shape` 它们必须可以广播到一个共同的shape(即输出的shape)。
- **dtype** (mindspore.dtype) - 默认值: `None` 。覆盖输出Tensor的dtype。
返回:
Tensor或标量。如果 `x1``x2` 都是标量,返回标量。