mindspore.numpy.bitwise_or
==========================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/numpy/mindspore.numpy.bitwise_or.rst
    :alt: 查看源文件


.. py:function:: mindspore.numpy.bitwise_or(x1, x2, dtype=None)

    逐元素计算两个数组的按位或运算。 计算输入数组中整数的二进制表示的按位或。 此函数实现了C/Python中的操作符 | 。
    
    .. note::
        不支持NumPy参数 `out` 、 `where` 、 `casting` 、 `order` 、 `subok` 、 `signature` 、 `extobj` 。

    参数:
        - **x1** (Tensor) - 输入数组。
        - **x2** (Tensor) - 输入数组。 只处理int和bool类型。 如果 `x1.shape != x2.shape` ,它们必须能广播到一个共同的shape(即输出的shape)。
        - **dtype** (mindspore.dtype, 可选) - 默认值: ``None`` 。 覆盖输出Tensor的dtype。

    返回:
        Tensor或标量。 若 `x` 是标量,则返回值也是标量。