mindspore.mint.equal ===================== .. 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/mint/mindspore.mint.func_equal.rst :alt: 查看源文件 .. py:function:: mindspore.mint.equal(input, other) 比较两个输入是否相等。 .. note:: `input` 和 `other` 遵循隐式类型转换规则,使数据类型保持一致。 .. warning:: 这是一个实验性API,后续可能修改或删除。 参数: - **input** (Tensor) - 第一个输入。 - **other** (Tensor) - 第二个输入。 返回: bool。 异常: - **TypeError** - 如果 `input` 或 `other` 不是Tensor。