Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling weight_noise_ff makes machine translation example crash #81

Open
vitaka opened this issue Feb 10, 2016 · 0 comments
Open

Enabling weight_noise_ff makes machine translation example crash #81

vitaka opened this issue Feb 10, 2016 · 0 comments

Comments

@vitaka
Copy link

vitaka commented Feb 10, 2016

Hello,

While playing with the machine translation example I came across an unexpected crash. I tried to enable weight noise as done in the paper "On Using Monolingual Corpora in Neural Machine Translation". I assigned a value higher than 0 to the configuration parameter "weight_noise_ff" and got a crash in line 78 of init.py:

enc_params = Selector(encoder.lookup).get_params().values()

I replaced get_params() with get_params(), according to the API documentation, but then I get the following error:

File "machine_translation/init.py", line 85, in main
dec_params += Selector(decoder.state_init).get_parameters().values()
AttributeError: 'Decoder' object has no attribute 'state_init'

Any advice?

Thanks in advance

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

No branches or pull requests

1 participant