mindspore.ops.ldexp ==================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/ops/mindspore.ops.func_ldexp.rst :alt: 查看源文件 .. 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