Skip to content
Snippets Groups Projects
Commit 996b77cc authored by Daniel Povey's avatar Daniel Povey Committed by GitHub
Browse files

Merge pull request #885 from galv/python-div-fix

Fixes #883
parents 467ab7d0 6fb7eb39
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