-
Notifications
You must be signed in to change notification settings - Fork 134
Implement ScalarLoop in torch backend #958
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
7804b90
Add for loop based scalar loop
Ch0ronomato 12569f8
Pass all loop tests
8eff3fe
Fetch constants from op
e0bbde8
Add while loop test
Ch0ronomato ae1c9da
Fix while loop and nasty stack over dtypes
2844bc4
Disable compile here based on CI result
39ff3de
Fix mypy signature
714759c
Remove unnecessary torch stack
623dfbe
Only call .cpu when necessary
e06994f
Recursive false for torch compiler
977d98d
Add elemwise test
07e4520
Late import torch
561301b
Do iteration instead of vmap for elemwise
e28c3e2
Clean up and add description
Ch0ronomato fb90500
Add unit test to verify iteration
Ch0ronomato cd678ef
Refactor to ravel method
1865de9
Fix unpacking
Ch0ronomato 1ffd7c6
Fix comment
fd2f192
Remove extra return
7027c4c
Update test
2a9ffd3
Add single carry test
4ebdd15
Remove compiler disable
46e3e72
Better name
d00f9e2
Lint
5bd100e
Better docstring
b6ce485
Fix linker
521ad67
Pr comments
Ch0ronomato File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.