Skip to content

Commit

Permalink
fix comment of adaptive lsgd (#27362)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForFishes authored Sep 17, 2020
1 parent bf8e030 commit 746a8de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions python/paddle/distributed/fleet/meta_optimizers/amp_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ def __init__(self, optimizer):
self.amp_opt = None
# we do not allow meta optimizer to be inner optimizer currently
self.meta_optimizers_white_list = [
"LarsOptimizer", "LambOptimizer", "RecomputeOptimizer",
"LocalSGDOptimizer", "GradientMergeOptimizer",
"GraphExecutionOptimizer", "AdaptiveLocalSGDOptimizer"
"LarsOptimizer",
"LambOptimizer",
"RecomputeOptimizer",
"LocalSGDOptimizer",
"GradientMergeOptimizer",
"GraphExecutionOptimizer",
"AdaptiveLocalSGDOptimizer",
]
self.meta_optimizers_black_list = ["DGCOptimizer"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def __init__(self, optimizer):
self.inner_opt = optimizer
self.meta_optimizers_white_list = []
self.meta_optimizers_black_list = [
"GraphExecutionOptimizer", "AdaptiveLocalSGDOptimizer"
"GraphExecutionOptimizer",
"AdaptiveLocalSGDOptimizer",
]
self.snapshot_key = '@SNAPSHOT'

Expand Down

0 comments on commit 746a8de

Please sign in to comment.