leviswind / pytorch-transformer

pytorch implementation of Attention is all you need
239 stars 58 forks source link

Problem NotImplementedError? #3

Closed A6Matrix closed 4 years ago

A6Matrix commented 5 years ago

When I run the train.py,report this error image How to solve this problem?THKS

leviswind commented 5 years ago

We use pytorch with version 0.3. You can solve this problem following the link below

https://github.com/salesforce/awd-lstm-lm/issues/39#issuecomment-386827279

liperrino commented 5 years ago

Hello. I have the same problem but i could not resolve it. Please how exactly can we resolve it? i follow the link below but there is nothing like that in your code.

liperrino commented 5 years ago

Ok. I have seen it. And change it like you said

liperrino commented 5 years ago

Please i would like to add Beam Search on your code. Can you help me?

liperrino commented 5 years ago

And i also want to add Transformer with attention if possible

A6Matrix commented 5 years ago

Ok. I have seen it. And change it like you said

OK,I also found it,Just revise that sentence, right? image

A6Matrix commented 5 years ago

Ok. I have seen it. And change it like you said F.embedding(....),what should I replace ’F‘ with?