-
Notifications
You must be signed in to change notification settings - Fork 13
Support range() loops (alias for hl.grid) #212
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
Conversation
@@ -118,7 +118,7 @@ def fn(x: torch.Tensor) -> torch.Tensor: | |||
batch = x.size(0) | |||
out = x.new_empty(batch) | |||
for tile_batch in hl.tile(batch): | |||
for i in range(10): | |||
for i in [1, 2, 3]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this mean the literal [1,2,3] is not supported? should we support it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, it is not supported. We could support it by unrolling the loop, not sure if it is allowd in Triton.
90e4ae7
to
e56d028
Compare
Stacked PRs (oldest at bottom):
Support range() loops (alias for hl.grid)
Fixes #207