SamLynnEvans/Transformer

The size of tensor a (207) must match the size of tensor b

anasAloklah opened this issue · 4 comments

RuntimeError: The size of tensor a (207) must match the size of tensor b (200) at non-singleton dimension 1
hat error when I want to up -max_strlen more 80
I want solution for this problem

I guess this error is due to max_seq_len in Positional Encoder, not due to max_strlen

could you resolve this error? I am getting the same

could you resolve this error? I am getting the same
Yes, however, I couldn't produce the correct output.
Change the max_seq_len according to your input size for encoder and decoder in the model.

could you resolve this error? I am getting the same
Yes, however, I couldn't produce the correct output.
Change the max_seq_len according to your input size for encoder and decoder in the model.

yes solved thank you