dictionary fix
@@ -26,6 +26,8 @@ from collections import deque
def get_pyt_dict_file(opt):
+ if os.path.exists(opt.get('dict_file', '')):
+ return opt['dict_file']
if not opt['pytorch_teacher_task']:
opt['pytorch_teacher_task'] = opt['task']
return os.path.join(
