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

File "/xxx/selective_scan_interface.py", line 331, in backward dx, dconv1d_weight, dconv1d_bias = causal_conv1d_cuda.causal_conv1d_bwd( RuntimeError: weight must have shape (dim, width) #22

Open
zyzcuczyu opened this issue Apr 21, 2024 · 0 comments

Comments

@zyzcuczyu
Copy link

This is the line where the error code is located:

    dx, dconv1d_weight, dconv1d_bias = causal_conv1d_cuda.causal_conv1d_bwd(
        x, conv1d_weight, conv1d_bias, dconv1d_out, dx, None, None, None, True, True
    )

Before that, I print the shape of conv1d_weight:
shape: torch.Size([1536, 4]) is_contiguous: True

It seems that the shape of conv1d_weight is right, but the code still goes wrong. I really don't know why.
The image shows the details.
image_1373
btw, these are versions of my packages:
image

Hope someone can solve my problem :(

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