Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions python/tvm/relax/frontend/nn/_tensor_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,22 @@ def __truediv__(self, other):
other = _convert_scalar(other, self)
return _op().divide(self, other)

def __lt__(self, other):
other = _convert_scalar(other, self)
return _op().less(self, other)

def __le__(self, other):
other = _convert_scalar(other, self)
return _op().less_equal(self, other)

def __gt__(self, other):
other = _convert_scalar(other, self)
return _op().greater(self, other)

def __ge__(self, other):
other = _convert_scalar(other, self)
return _op().greater_equal(self, other)

def astype(self, dtype):
return _op().astype(self, dtype)

Expand Down
Loading