Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
7ae10900
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
7ae10900
编写于
8月 21, 2020
作者:
M
mapingshuo
提交者:
GitHub
8月 21, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix slow var initialize, test=develop (#26516)
上级
5407e327
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
7 deletion
+12
-7
python/paddle/fluid/optimizer.py
python/paddle/fluid/optimizer.py
+12
-7
未找到文件。
python/paddle/fluid/optimizer.py
浏览文件 @
7ae10900
...
...
@@ -1141,7 +1141,7 @@ class MomentumOptimizer(Optimizer):
class
DGCMomentumOptimizer
(
Optimizer
):
"""
:api_attr: Static Graph
:api_attr: Static Graph
DGC (Deep Gradient Compression) Momentum Optimizer. Original paper is https://arxiv.org/abs/1712.01887
...
...
@@ -3067,7 +3067,7 @@ Lamb = LambOptimizer
class
ModelAverage
(
Optimizer
):
"""
:api_attr: Static Graph
:api_attr: Static Graph
The ModelAverage optimizer accumulates specific continuous historical parameters
during training. The accumulated historical range can be controlled by the passed
...
...
@@ -3376,7 +3376,7 @@ class ModelAverage(Optimizer):
class
ExponentialMovingAverage
(
object
):
"""
:api_attr: Static Graph
:api_attr: Static Graph
Compute the moving average of parameters with exponential decay.
Given a parameter :math:`
\\
theta`, its exponential moving average (EMA)
...
...
@@ -3626,7 +3626,7 @@ class ExponentialMovingAverage(object):
class
PipelineOptimizer
(
object
):
"""
:api_attr: Static Graph
:api_attr: Static Graph
Pipeline Optimizer: Make a program to run as pipeline, that is splitting a
program into multiple sections (sub-programs) and each section run on a
...
...
@@ -4477,7 +4477,7 @@ class PipelineOptimizer(object):
class
RecomputeOptimizer
(
Optimizer
):
"""
:api_attr: Static Graph
:api_attr: Static Graph
Recompute Optimizer Wrapper
...
...
@@ -4562,7 +4562,7 @@ class RecomputeOptimizer(Optimizer):
def
load
(
self
,
stat_dict
):
"""
:api_attr: Static Graph
:api_attr: Static Graph
load function is not supported by Recompute Optimizer for now.
:return: None
...
...
@@ -4786,7 +4786,7 @@ class RecomputeOptimizer(Optimizer):
class
LookaheadOptimizer
(
object
):
"""
:api_attr: Static Graph
:api_attr: Static Graph
This implements the Lookahead optimizer of the
paper : https://arxiv.org/abs/1907.08610.
...
...
@@ -4929,6 +4929,11 @@ class LookaheadOptimizer(object):
mod
=
layers
.
elementwise_mod
(
step
,
k
)
with
layers
.
control_flow
.
Switch
()
as
switch
:
with
switch
.
case
(
step
==
one_var
):
for
param_name
in
params
:
fast_var
=
main_block
.
var
(
param_name
)
slow_var
=
param_to_slow
[
param_name
]
layers
.
assign
(
input
=
fast_var
,
output
=
slow_var
)
with
switch
.
case
(
mod
==
zero_var
):
for
param_name
in
params
:
fast_var
=
main_block
.
var
(
param_name
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录