Skip to content
Snippets Groups Projects
Commit 6fb7eb39 authored by Daniel Galvez's avatar Daniel Galvez
Browse files

Fixes #883

Avoid using python's / operator so that we do not create a floating
point value accidentally when python3 is used.
parent 467ab7d0
No related branches found
No related tags found
No related merge requests found
......@@ -367,7 +367,7 @@ def TrainOneIteration(dir, iter, egs_dir,
# model-averaging isn't always helpful when the model is changing too fast
# (i.e. it can worsen the objective function), and the smaller minibatch
# size will help to keep the update stable.
cur_minibatch_size = minibatch_size / 2
cur_minibatch_size = minibatch_size // 2
cur_max_param_change = float(max_param_change) / math.sqrt(2)
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment