Skip to content

Commit c4b48c4

Browse files
authored
lr floating division
1 parent 75e435f commit c4b48c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

word_language_model/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def train():
174174
best_val_loss = val_loss
175175
else:
176176
# Anneal the learning rate if no improvement has been seen in the validation dataset.
177-
lr /= 4
177+
lr /= 4.0
178178
except KeyboardInterrupt:
179179
print('-' * 89)
180180
print('Exiting from training early')

0 commit comments

Comments
 (0)