Closed erip closed 4 years ago
I am also facing same issue with pytorch translate , Can you please provide solution ?
You can edit the file locally, but that's not a great long term solution. Just remove the references to the class in the generate.py
listed in the stack trace.
Thank You . i have defined the LevenshteinTransformerModel in fairseq/models/ path , now i am able to running the pytorch-translate .
When running
bash pytorch_translate/examples/train_iwslt14.sh
The culprit is this fella: https://github.com/pytorch/translate/blob/master/pytorch_translate/generate.py#L48
Because the import is conditional, there's a name error when the import fails.