Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
dc8dfba3
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
dc8dfba3
编写于
2月 24, 2021
作者:
L
lilong12
提交者:
GitHub
2月 24, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
align the default value of some configuration for fleet to that of single cards (#30740)
* update, test=develop
上级
a373aa76
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
18 addition
and
2 deletion
+18
-2
paddle/fluid/framework/distributed_strategy.proto
paddle/fluid/framework/distributed_strategy.proto
+2
-2
python/paddle/distributed/fleet/base/distributed_strategy.py
python/paddle/distributed/fleet/base/distributed_strategy.py
+16
-0
未找到文件。
paddle/fluid/framework/distributed_strategy.proto
浏览文件 @
dc8dfba3
...
@@ -141,9 +141,9 @@ message DistributedStrategy {
...
@@ -141,9 +141,9 @@ message DistributedStrategy {
optional
bool
fuse_all_reduce_ops
=
18
[
default
=
true
];
optional
bool
fuse_all_reduce_ops
=
18
[
default
=
true
];
optional
int32
fuse_grad_size_in_MB
=
19
[
default
=
32
];
optional
int32
fuse_grad_size_in_MB
=
19
[
default
=
32
];
optional
float
fuse_grad_size_in_TFLOPS
=
20
[
default
=
50
];
optional
float
fuse_grad_size_in_TFLOPS
=
20
[
default
=
50
];
optional
bool
cudnn_exhaustive_search
=
21
[
default
=
tru
e
];
optional
bool
cudnn_exhaustive_search
=
21
[
default
=
fals
e
];
optional
int32
conv_workspace_size_limit
=
22
[
default
=
512
];
optional
int32
conv_workspace_size_limit
=
22
[
default
=
512
];
optional
bool
cudnn_batchnorm_spatial_persistent
=
23
[
default
=
tru
e
];
optional
bool
cudnn_batchnorm_spatial_persistent
=
23
[
default
=
fals
e
];
optional
bool
adaptive_localsgd
=
24
[
default
=
false
];
optional
bool
adaptive_localsgd
=
24
[
default
=
false
];
optional
bool
fp16_allreduce
=
25
[
default
=
false
];
optional
bool
fp16_allreduce
=
25
[
default
=
false
];
optional
bool
sharding
=
26
[
default
=
false
];
optional
bool
sharding
=
26
[
default
=
false
];
...
...
python/paddle/distributed/fleet/base/distributed_strategy.py
浏览文件 @
dc8dfba3
...
@@ -118,6 +118,22 @@ class DistributedStrategy(object):
...
@@ -118,6 +118,22 @@ class DistributedStrategy(object):
"""
"""
self
.
strategy
=
distributed_strategy_pb2
.
DistributedStrategy
()
self
.
strategy
=
distributed_strategy_pb2
.
DistributedStrategy
()
# Set the default values of the following flags to the ones set by users
key
=
'FLAGS_cudnn_batchnorm_spatial_persistent'
if
core
.
globals
().
is_public
(
key
):
self
.
strategy
.
cudnn_batchnorm_spatial_persistent
=
bool
(
core
.
globals
()[
key
])
key
=
'FLAGS_conv_workspace_size_limit'
if
core
.
globals
().
is_public
(
key
):
self
.
strategy
.
conv_workspace_size_limit
=
int
(
core
.
globals
()[
key
])
key
=
'FLAGS_cudnn_exhaustive_search'
if
core
.
globals
().
is_public
(
key
):
self
.
strategy
.
cudnn_exhaustive_search
=
bool
(
core
.
globals
()[
key
])
key
=
'FLAGS_sync_nccl_allreduce'
if
core
.
globals
().
is_public
(
key
):
self
.
strategy
.
sync_nccl_allreduce
=
bool
(
core
.
globals
()[
key
])
self
.
__lock_attr
=
True
self
.
__lock_attr
=
True
def
__setattr__
(
self
,
key
,
value
):
def
__setattr__
(
self
,
key
,
value
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录