Skip to content

Commit

Permalink
Fix typos in API docs and Python docstring for ExponentialMovingAvera…
Browse files Browse the repository at this point in the history
…ge object. (tensorflow#2369)

* Fix two typos in API docs for ExponentialMovingAverage object.

* Fix two typos in Python docstring for ExponentialMovingAverage object.
  • Loading branch information
lukaszbk authored and mrry committed May 18, 2016
1 parent b54b59e commit 7b9b91e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tensorflow/g3doc/api_docs/python/train.md
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ saver.restore(...checkpoint filename...)

Creates a new ExponentialMovingAverage object.

The `Apply()` method has to be called to create shadow variables and add
The `apply()` method has to be called to create shadow variables and add
ops to maintain moving averages.

The optional `num_updates` parameter allows one to tweak the decay rate
Expand All @@ -965,7 +965,7 @@ move faster. If passed, the actual decay rate used is:
* <b>`decay`</b>: Float. The decay to use.
* <b>`num_updates`</b>: Optional count of number of updates applied to variables.
* <b>`name`</b>: String. Optional prefix name to use for the name of ops added in
`Apply()`.
`apply()`.


- - -
Expand Down
4 changes: 2 additions & 2 deletions tensorflow/python/training/moving_averages.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class ExponentialMovingAverage(object):
def __init__(self, decay, num_updates=None, name="ExponentialMovingAverage"):
"""Creates a new ExponentialMovingAverage object.
The `Apply()` method has to be called to create shadow variables and add
The `apply()` method has to be called to create shadow variables and add
ops to maintain moving averages.
The optional `num_updates` parameter allows one to tweak the decay rate
Expand All @@ -225,7 +225,7 @@ def __init__(self, decay, num_updates=None, name="ExponentialMovingAverage"):
decay: Float. The decay to use.
num_updates: Optional count of number of updates applied to variables.
name: String. Optional prefix name to use for the name of ops added in
`Apply()`.
`apply()`.
"""
self._decay = decay
self._num_updates = num_updates
Expand Down

0 comments on commit 7b9b91e

Please sign in to comment.