Skip to content

Commit

Permalink
Fix typos TA (facebookresearch#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
klshuster authored Jan 24, 2019
1 parent 37b9af6 commit eadb3fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parlai/core/torch_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,13 @@ def receive_metrics(self, metrics_dict):
elif self.opt['lr_scheduler'] == 'invsqrt':
# this is a training step lr scheduler, nothing to adjust in validation
pass
elif self.opt['lr_schedule'] == 'none':
elif self.opt['lr_scheduler'] == 'none':
# no adjustments, do nothing
pass
else:
raise ValueError(
"Don't know how to work with lr scheduler '{}'"
.format(self.opt['lr_schedulre'])
.format(self.opt['lr_scheduler'])
)

def _get_embtype(self, emb_type):
Expand Down

0 comments on commit eadb3fa

Please sign in to comment.