Skip to content

Commit 732b445

Browse files
authored
fix typo
1 parent 1e5324f commit 732b445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onmt/utils/optimizers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def step(self):
331331
if hasattr(self._optimizer, "clip_master_grads") and \
332332
self._max_grad_norm > 0:
333333
import apex
334-
torch.nn.utils.glip_grad_norm_(
334+
torch.nn.utils.clip_grad_norm_(
335335
apex.amp.master_params(self), self._max_grad_norm)
336336
for group in self._optimizer.param_groups:
337337
group['lr'] = learning_rate

0 commit comments

Comments
 (0)