Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
ddf82d0e
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看板
提交
ddf82d0e
编写于
9月 28, 2020
作者:
F
frankwhzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix error message, test=develop
上级
a7197bfb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
6 deletion
+12
-6
paddle/fluid/operators/batch_norm_op.cc
paddle/fluid/operators/batch_norm_op.cc
+6
-3
paddle/fluid/operators/distributed_ops/fl_listen_and_serv_op.cc
.../fluid/operators/distributed_ops/fl_listen_and_serv_op.cc
+6
-3
未找到文件。
paddle/fluid/operators/batch_norm_op.cc
浏览文件 @
ddf82d0e
...
...
@@ -381,7 +381,8 @@ class BatchNormKernel<platform::CPUDeviceContext, T>
break
;
}
default:
PADDLE_THROW
(
"Unknown storage order: %s"
,
data_layout_str
);
PADDLE_THROW
(
platform
::
errors
::
InvalidArgument
(
"Unknown storage order: %s"
,
data_layout_str
));
}
// if MomentumTensor is set, use MomentumTensor value, momentum
...
...
@@ -446,7 +447,8 @@ class BatchNormKernel<platform::CPUDeviceContext, T>
break
;
}
default:
PADDLE_THROW
(
"Unknown storage order: %d"
,
data_layout
);
PADDLE_THROW
(
platform
::
errors
::
InvalidArgument
(
"Unknown storage order: %d"
,
data_layout
));
}
}
};
...
...
@@ -799,7 +801,8 @@ class BatchNormGradKernel<platform::CPUDeviceContext, T>
break
;
}
default:
PADDLE_THROW
(
"Unknown storage order: %s"
,
data_layout_str
);
PADDLE_THROW
(
platform
::
errors
::
InvalidArgument
(
"Unknown storage order: %s"
,
data_layout_str
));
}
}
};
...
...
paddle/fluid/operators/distributed_ops/fl_listen_and_serv_op.cc
浏览文件 @
ddf82d0e
...
...
@@ -108,7 +108,8 @@ void FlListenAndServOp::RunSyncLoop(framework::Executor *executor,
auto
optimize_blocks
=
Attr
<
std
::
vector
<
framework
::
BlockDesc
*>>
(
kOptimizeBlocks
);
PADDLE_ENFORCE_GE
(
num_blocks
,
2
,
"server program should have at least 2 blocks"
);
platform
::
errors
::
InvalidArgument
(
"server program should have at least 2 blocks"
));
// Prepare all the server block
std
::
vector
<
int
>
optimize_blocks_list
;
...
...
@@ -192,7 +193,8 @@ void FlListenAndServOp::RunImpl(const framework::Scope &scope,
auto
fan_in
=
Attr
<
int
>
(
"Fanin"
);
auto
inputs
=
Inputs
(
"X"
);
PADDLE_ENFORCE_EQ
(
!
rpc_service_
,
true
,
"rpc_service_ must null"
);
PADDLE_ENFORCE_EQ
(
!
rpc_service_
,
true
,
platform
::
errors
::
InvalidArgument
(
"rpc_service_ must null"
));
std
::
string
endpoint
=
Attr
<
std
::
string
>
(
"endpoint"
);
VLOG
(
4
)
<<
"sync_mode:"
<<
sync_mode
<<
", fan_in:"
<<
fan_in
...
...
@@ -215,7 +217,8 @@ void FlListenAndServOp::RunImpl(const framework::Scope &scope,
Attr
<
std
::
vector
<
framework
::
BlockDesc
*>>
(
kOptimizeBlocks
);
PADDLE_ENFORCE_GE
(
optimize_blocks
.
size
(),
1
,
"optimize blocks should be 1 at least on the pserver side."
);
platform
::
errors
::
InvalidArgument
(
"optimize blocks should be 1 at least on the pserver side."
));
auto
*
program
=
optimize_blocks
[
0
]
->
Program
();
framework
::
Executor
executor
(
dev_place
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录