Skip to content

Commit

Permalink
Merge pull request #905 from pengli09/fix-model-avg-py-error
Browse files Browse the repository at this point in the history
Remove do_average_in_cpu, max_average_window, average_window from optimizers.py
  • Loading branch information
reyoung authored Dec 15, 2016
2 parents 5235861 + 6516fd9 commit 638cf8d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python/paddle/trainer_config_helpers/optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,6 @@ def settings(batch_size,
learning_rate_decay_b=0.,
learning_rate_schedule='poly',
learning_rate_args='',
average_window=0,
do_average_in_cpu=False,
max_average_window=None,
learning_method=None,
regularization=None,
is_async=False,
Expand Down Expand Up @@ -411,8 +408,7 @@ def settings(batch_size,

args = [
'batch_size', 'learning_rate', 'learning_rate_decay_a',
'learning_rate_decay_b', 'learning_rate_schedule', 'learning_rate_args',
'average_window', 'do_average_in_cpu', 'max_average_window'
'learning_rate_decay_b', 'learning_rate_schedule', 'learning_rate_args'
]
kwargs = dict()
kwargs['algorithm'] = algorithm
Expand Down

0 comments on commit 638cf8d

Please sign in to comment.