Transformer icon indicating copy to clipboard operation
Transformer copied to clipboard

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

Open anasAloklah opened this issue 6 years ago • 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

anasAloklah avatar Dec 27 '19 21:12 anasAloklah

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

MehwishFatimah avatar Mar 19 '20 12:03 MehwishFatimah

could you resolve this error? I am getting the same

shefali1234 avatar May 08 '20 09:05 shefali1234

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.

MehwishFatimah avatar May 08 '20 13:05 MehwishFatimah

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

anasAloklah avatar Mar 11 '21 13:03 anasAloklah