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

您好~batch_size只能取1吗? #50

Open
wenwen19980927 opened this issue Mar 17, 2022 · 0 comments
Open

您好~batch_size只能取1吗? #50

wenwen19980927 opened this issue Mar 17, 2022 · 0 comments

Comments

@wenwen19980927
Copy link

我想将batch_size 取其他值,但是发现做不到,在layer.py的sp_attn_head函数中有这样的注释:

As tf.sparse_tensor_dense_matmul expects its arguments to have rank-2,

here we make an assumption that our input is of batch size 1, and reshape appropriately.

The method will fail in all other cases!

想问问您应该怎么处理,才能使得batch_size可以取其他值呢?
十分感谢!

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