mindspore/docs/api/api_python/mint/mindspore.mint.func_equal.rst

17 lines
421 B
ReStructuredText

mindspore.mint.equal
=====================
.. py:function:: mindspore.mint.equal(input, other)
逐元素比较两个输入tensor是否相等。
.. note::
`input``other` 遵循隐式类型转换规则,使数据类型保持一致。
参数:
- **input** (Tensor) - 第一个输入tensor。
- **other** (Tensor) - 第二个输入tensor。
返回:
Bool型tensor