mindspore.Tensor.greater
========================

.. py:method:: mindspore.Tensor.greater(other)

    按元素比较输入参数 :math:`self > other` 的值,输出结果为bool值。

    更多参考详见 :func:`mindspore.ops.gt()`。

    参数:
        - **other** (Union[Tensor, Number]) - 是一个Number或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/r2.5.0/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/r2.5.0/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 的Tensor。

    返回:
        Tensor,shape与广播后的shape相同,数据类型为bool。