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

Bug in Transformer class #73

Open
yszhuu opened this issue Aug 10, 2022 · 1 comment
Open

Bug in Transformer class #73

yszhuu opened this issue Aug 10, 2022 · 1 comment

Comments

@yszhuu
Copy link

yszhuu commented Aug 10, 2022

"""
bs, c, hn, w = feat_left.shape
attn_weight = self._alternating_attn(feat, pos_enc, pos_indexes, hn)
"""
An error occurs when the batch_size is not 1.

@mli0603
Copy link
Owner

mli0603 commented Aug 10, 2022

Hi @yszhuu, yes, as stated in the paper, our code currently only supports batch size of 1. Changing the code of reshaping operations are needed to support larger 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

2 participants