forked from mindspore-Ecosystem/mindspore
21 lines
507 B
ReStructuredText
21 lines
507 B
ReStructuredText
mindspore.ops.logaddexp
|
||
=======================
|
||
|
||
.. py:function:: mindspore.ops.logaddexp(x1, x2)
|
||
|
||
计算输入的指数和的对数。
|
||
|
||
.. math::
|
||
|
||
out_i = log(exp(x1_i) + exp(x2_i))
|
||
|
||
参数:
|
||
- **x1** (Tensor) - 输入Tensor。
|
||
- **x2** (Tensor) - 输入Tensor。如果 `x1` 的shape不等于 `x2` 的shape,它们必须被广播成相同shape(输出的形状)。
|
||
|
||
返回:
|
||
Tensor。
|
||
|
||
异常:
|
||
- **TypeError** - `x1` 或 `x2` 不是Tensor。
|