mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[FRONTEND] Add reverse eq and ne (#2563)
This commit is contained in:
@@ -720,11 +720,21 @@ class tensor:
|
||||
other = _to_tensor(other, _builder)
|
||||
return semantic.equal(self, other, _builder)
|
||||
|
||||
@builtin
|
||||
def __req__(self, other, _builder=None):
|
||||
other = _to_tensor(other, _builder)
|
||||
return semantic.equal(other, self, _builder)
|
||||
|
||||
@builtin
|
||||
def __ne__(self, other, _builder=None):
|
||||
other = _to_tensor(other, _builder)
|
||||
return semantic.not_equal(self, other, _builder)
|
||||
|
||||
@builtin
|
||||
def __rne__(self, other, _builder=None):
|
||||
other = _to_tensor(other, _builder)
|
||||
return semantic.not_equal(other, self, _builder)
|
||||
|
||||
@builtin
|
||||
def logical_and(self, other, _builder=None):
|
||||
other = _to_tensor(other, _builder)
|
||||
|
||||
Reference in New Issue
Block a user