mindspore.ops.copysign ======================= .. 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_copysign.rst :alt: 查看源文件 .. py:function:: mindspore.ops.copysign(x, other) 创建一个float tensor,由 `x` 的绝对值和 `other` 的符号组成。 支持广播。 参数: - **x** (Union[Tensor]) - 输入tensor - **other** (Union[int, float, Tensor]) - 决定返回值符号的tensor。 返回: Tensor