mindspore/docs/api/api_python/mint/mindspore.mint.func_logadde...

22 lines
749 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.mint.logaddexp2
==========================
.. py:function:: mindspore.mint.logaddexp2(input, other)
计算以2为底的输入的指数和的对数。
.. math::
out_i = \log_2(2^{input_i} + 2^{other_i})
参数:
- **input** (Tensor) - 输入Tensor其数据类型必须是float。
- **other** (Tensor) - 输入Tensor其数据类型必须是float。如果 `input` 的shape不等于 `other` 的shape它们必须被广播成相同shape(输出的形状)。
返回:
Tensor数据类型与输入 `input``other` 相同。
异常:
- **TypeError** - `input``other` 不是Tensor。
- **TypeError** - `input``other` 的数据类型不是float。