Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Cannot import 'latent_var_criterion' #599

Open
mamprogr opened this issue Jul 19, 2019 · 1 comment
Open

Cannot import 'latent_var_criterion' #599

mamprogr opened this issue Jul 19, 2019 · 1 comment

Comments

@mamprogr
Copy link

Hi,
After installing translate, when I try:
bash pytorch_translate/examples/train_iwslt14.sh
It shows this error:
Traceback (most recent call last): File "pytorch_translate/train.py", line 22, in <module> from pytorch_translate import latent_var_criterion # noqa ImportError: cannot import name 'latent_var_criterion' from 'pytorch_translate'

How to solve it?
Thanks.

@cndn
Copy link
Contributor

cndn commented Jul 19, 2019

Will land a fix soon. You can comment out latent_var related imports in train.py now as a workaround.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants