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

Add from_opt constructor to all encs/decs. #1230

Merged
merged 3 commits into from
Jan 29, 2019

Conversation

flauted
Copy link
Contributor

@flauted flauted commented Jan 29, 2019

This adds a from_opt constructor to all encoders and decoders and str2enc and str2dec dicts. It cleans up some of the logic in model_builder.py.

@flauted
Copy link
Contributor Author

flauted commented Jan 29, 2019

I don't understand why the flake8 test for this failed. Did something change with Travis? Obviously we want to import torch.nn.functional as F.

@vince62s vince62s requested a review from guillaumekln January 29, 2019 08:37
@vince62s
Copy link
Member

vince62s commented Jan 29, 2019

can you fix the conflict please ?
I think the flake8 thing must come from a newer version of something.

EDIT: don't worry I did it, to also fix the flake thing.

@vince62s vince62s merged commit 45857f7 into OpenNMT:master Jan 29, 2019
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

Successfully merging this pull request may close these issues.

3 participants