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

Commit

Permalink
Fix pytorch integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenroller committed Jan 25, 2019
1 parent eadb3fa commit a19dea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parlai/scripts/build_pytorch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


def get_pyt_dict_file(opt):
if os.path.exists(opt.get('dict_file', '')):
if opt.get('dict_file') and os.path.exists(opt.get('dict_file', '')):
return opt['dict_file']
if not opt['pytorch_teacher_task']:
opt['pytorch_teacher_task'] = opt['task']
Expand Down

0 comments on commit a19dea3

Please sign in to comment.