mindspore/docs/api/api_python/ops/mindspore.ops.func_ldexp.rst

19 lines
473 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.ops.ldexp
====================
.. py:function:: mindspore.ops.ldexp(x, other)
逐元素将输入tensor乘以 :math:`2^{other}`
该函数通常用于将尾数 `x` 和由指数 `other` 创建的2的整数次幂相乘来构造浮点数:
.. math::
out_{i} = x_{i} * ( 2 ^{other_{i}} )
参数:
- **x** (Tensor) - 尾数tensor。
- **other** (Tensor) - 指数tensor通常为整数。
返回:
Tensor