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

为什么运行代码时在GatedCNNBlock中g,i,c = torch,split(self.fc1(x),self.split_indices, dim= 1)会出现报错runtimeError: mat1 and mat2 shapes cannot be multiplied (12800×28 and 64×340),哪位科迷帮忙解决一下 #239

Open
Muzixingxi opened this issue May 28, 2024 · 4 comments

Comments

@Muzixingxi
Copy link

为什么运行代码时在GatedCNNBlock中g,i,c = torch,split(self.fc1(x),self.split_indices, dim= 1)会出现报错runtimeError: mat1 and mat2 shapes cannot be multiplied (12800×28 and 64×340),哪位科迷帮忙解决一下

@yuweihao
Copy link
Owner

Can I know which model? I will debug it.

@Muzixingxi
Copy link
Author

我是将MambaOut中的整个GatedCNNBlock嵌入到其他模块出现该问题

@Muzixingxi
Copy link
Author

这是否和模型输入有关?

@yuweihao
Copy link
Owner

I guess yes. Please carefully check whether the input format is [B, H, W, C], if not, please permute it.

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

2 participants