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

Pyt Dict File #1392

Merged
merged 2 commits into from
Jan 28, 2019
Merged

Conversation

klshuster
Copy link
Contributor

Ensures that if a model file is specified, we save the dictionary there (rather than the default PytorchDataTeacher file).

Integration tests pass on local machine.

return opt['dict_file']
if opt.get('dict_file', None) is None and opt.get('model_file'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just opt.get('dict_file') is None and opt.get('model_file'); the None is the default argument for opt.get

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, i'll change that

@klshuster klshuster merged commit 85d44b2 into facebookresearch:master Jan 28, 2019
@klshuster klshuster deleted the pyt_build_dict_fix branch January 28, 2019 15:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants