mindspore.mint.all
==================

.. 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/mint/mindspore.mint.func_all.rst
    :alt: 查看源文件


.. py:function:: mindspore.mint.all(input)

    检查是否所有元素均为 `True`。

    参数:
        - **input** (Tensor) - 输入tensor。

    返回:
        Tensor

    .. py:function:: mindspore.mint.all(input, dim, keepdim=False)
        :noindex:

    检查指定维度上是否所有元素均为 `True`。

    参数:
        - **input** (Tensor) - 输入tensor。
        - **dim** (Union[int, tuple(int), list(int), Tensor]) - 要减少的维度。如果为 ``None``,减少所有维度。
        - **keepdim** (bool, 可选) - 输出tensor是否保留维度。默认 ``False`` 。

    返回:
        Tensor