Skip to content
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

TypeError: sru_forward(): incompatible function arguments. #142

Open
KP-Zhang opened this issue Nov 4, 2020 · 0 comments
Open

TypeError: sru_forward(): incompatible function arguments. #142

KP-Zhang opened this issue Nov 4, 2020 · 0 comments

Comments

@KP-Zhang
Copy link

KP-Zhang commented Nov 4, 2020

Thank you for your work. When running the example, I encounter the following error.

Pytorch 1.6.0
sur: 2.5.1

File "C:\Anaconda3\lib\site-packages\sru\cuda_functional.py", line 83, in forward
is_custom
TypeError: sru_forward(): incompatible function arguments. The following argument types are supported:

tensor([[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
...,
[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.]], device='cuda:0'), tensor([]), tensor([], dtype=torch.uint8), 20, 32, 128, 3, 0, 1, False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant