From c4b48c43c4de785834bc184cf764c1d6d1df1f8c Mon Sep 17 00:00:00 2001 From: Soumith Chintala Date: Wed, 29 Mar 2017 15:04:13 -0400 Subject: [PATCH] lr floating division --- word_language_model/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/word_language_model/main.py b/word_language_model/main.py index 09b1fab0b0..88ed6007ef 100644 --- a/word_language_model/main.py +++ b/word_language_model/main.py @@ -174,7 +174,7 @@ def train(): best_val_loss = val_loss else: # Anneal the learning rate if no improvement has been seen in the validation dataset. - lr /= 4 + lr /= 4.0 except KeyboardInterrupt: print('-' * 89) print('Exiting from training early')