mindspore.ops.invert ==================== .. 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_invert.rst :alt: 查看源文件 .. py:function:: mindspore.ops.invert(x) 逐元素按位翻转。如:01010101 变为 10101010。 .. math:: out_i = \sim x_{i} 参数: - **x** (Tensor) - 输入tensor。 返回: Tensor