Implement ScalarLoop in torch backend (#958)
* Add for loop based scalar loop
* Pass all loop tests
* Fetch constants from op
* Add while loop test
* Fix while loop and nasty stack over dtypes
* Disable compile here based on CI result
* Fix mypy signature
* Remove unnecessary torch stack
* Only call .cpu when necessary
* Recursive false for torch compiler
* Add elemwise test
* Late import torch
* Do iteration instead of vmap for elemwise
* Clean up and add description
* Add unit test to verify iteration
* Refactor to ravel method
* Fix unpacking
Co-authored-by:
Ricardo Vieira <28983449+ricardoV94@users.noreply.github.com>
* Fix comment
* Remove extra return
* Update test
* Add single carry test
* Remove compiler disable
* Better name
* Lint
* Better docstring
* Pr comments
---------
Co-authored-by:
Ian Schweer <ischweer@riotgames.com>
Co-authored-by:
Ricardo Vieira <28983449+ricardoV94@users.noreply.github.com>
正在显示
请
注册
或者
登录
后发表评论