-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fix test_ops for tiny backend #9302
base: master
Are you sure you want to change the base?
Conversation
This branch currently is behind tinygrad/master. The line count difference bot is disabled. |
bbf0e83
to
9082525
Compare
locked to you since if you have done more than half of these also it needs to work correctly in principle, not just hacking to make the test pass |
extra/torch_backend/backend.py
Outdated
out = Tensor.avg_pool2d(self, kernel_size, stride, dilation=1, padding=padding, ceil_mode=ceil_mode, count_include_pad=count_include_pad) | ||
return wrap(out.gradient(self, gradient=grad_out)[0]) | ||
|
||
@torch.library.impl("aten::replication_pad1d_backward", "privateuseone") |
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.
Don't copy paste!
Update: Currently there are 2 tests failing on this PR,
|
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.
nice progress, can you open a separate pr for simple stuff?
also functions end with _
means inplace and should have assigned
read the diff carefully and remove all unneeded changes
* extact functions from #9302 * revert gather and add aten.elu_backward * address review --------- Co-authored-by: chenyu <chenyu@fastmail.com>
I have pinned down that both of the tests are failing because of the |
pick one way to fix the test first, and enable the test on CI to show that test_ops passes in CI, then we can decide the next step |
With
LLVM=1 LLVMOPT=0 TINY_BACKEND=1 python3 -m pytest -n auto test/test_ops.py
Test status on
master
(149 failures):Test status on this PR (2 failure):