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

The size of tensor a (36) must match the size of tensor b (34) at non-singleton dimension 2 #2

Open
xueyue-hd opened this issue Nov 18, 2022 · 0 comments

Comments

@xueyue-hd
Copy link

您好,我在运行过程中遇到了这样的问题。通过Debug发现,在FSBM模块中,如果输入数据的width维度无法整除参数k,那么fms_softmax的第2为会变成 k+1 而不是 k。这样会导致执行代码fms_boost = fm + self.alpha*(fm * fms_softmax_boost) 时,出现维度不匹配的错误。请问这应该如何处理?

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