Skip to content

Commit

Permalink
Fix typo in optimization.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkim committed Dec 14, 2018
1 parent 4a47cc2 commit 933848a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def apply_gradients(self, grads_and_vars, global_step=None, name=None):
# the correct way of using L2 regularization/weight decay with Adam,
# since that will interact with the m and v parameters in strange ways.
#
# Instead we want ot decay the weights in a manner that doesn't interact
# Instead we want to decay the weights in a manner that doesn't interact
# with the m/v parameters. This is equivalent to adding the square
# of the weights to the loss with plain (non-momentum) SGD.
if self._do_use_weight_decay(param_name):
Expand Down

0 comments on commit 933848a

Please sign in to comment.