Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity] GPU sampling #16575

Merged
merged 13 commits into from
Feb 23, 2024
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