-
Notifications
You must be signed in to change notification settings - Fork 22
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
CPP extensions Update #10
Comments
Hi! I don't have time to fix this now, but you can rewrite scnn to use these functions here, these use the CUDA kernels now too, so should be fast: https://github.com/pytorch/pytorch/blob/main/torch/nn/grad.py it's relatively easy: replace Lines 128 to 130 in 350df03
with: grad_in = torch.nn.grad.conv2d_input(inpt.shape, weight, grad_output, stride, padding, dilation, groups) replace Lines 215 to 221 in 350df03
with: grad_weight = torch.nn.grad.conv2d_weight(relevant_input.to(weight.dtype),
weight.shape,
relevant_grad.to(weight.dtype),
stride[1:3],
(0, 0), # padding
dilation,
groups) Good luck! |
yes, that is exactly it, I would have opened a PR if I had the permissions, however it's a very quick fix, thanks a lot! |
The cpp extensions do not compile anymore with newer version of torch, I've encountered the following two errors using versions >= 1.13.0
This is very likely due to versions mismatch, is there any fix for this or a newer version of the cpp extensions?
The text was updated successfully, but these errors were encountered: