mindspore.ops.pow ================== .. 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_pow.rst :alt: 查看源文件 .. py:function:: mindspore.ops.pow(input, exponent) 计算 `input` 中每个元素的 `exponent` 次幂。 .. note:: - 支持广播。 - 支持隐式类型转换、类型提升。 .. math:: out_{i} = input_{i} ^{ exponent_{i}} 参数: - **input** (Union[Tensor, Number]) - 第一个输入。 - **exponent** (Union[Tensor, Number]) - 第二个输入。 返回: Tensor