Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
2f40da09
P
Paddle
项目概览
机器未来
/
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2f40da09
编写于
9月 07, 2017
作者:
W
whs
提交者:
GitHub
9月 07, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3955 from wanghaoshuang/fix_warning
Fix warning log in switch order layer
上级
da66891b
fa54d9d8
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
10 addition
and
10 deletion
+10
-10
paddle/gserver/layers/SwitchOrderLayer.cpp
paddle/gserver/layers/SwitchOrderLayer.cpp
+4
-4
paddle/gserver/tests/test_LayerGrad.cpp
paddle/gserver/tests/test_LayerGrad.cpp
+4
-4
proto/ModelConfig.proto
proto/ModelConfig.proto
+2
-2
未找到文件。
paddle/gserver/layers/SwitchOrderLayer.cpp
浏览文件 @
2f40da09
...
@@ -32,11 +32,11 @@ bool SwitchOrderLayer::init(const LayerMap& layerMap,
...
@@ -32,11 +32,11 @@ bool SwitchOrderLayer::init(const LayerMap& layerMap,
outDims_
=
TensorShape
(
4
);
outDims_
=
TensorShape
(
4
);
auto
&
reshape_conf
=
config_
.
reshape_conf
();
auto
&
reshape_conf
=
config_
.
reshape_conf
();
for
(
size_t
i
=
0
;
i
<
reshape_conf
.
height
axis_size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
reshape_conf
.
height_
axis_size
();
i
++
)
{
heightAxis_
.
push_back
(
reshape_conf
.
heightaxis
(
i
));
heightAxis_
.
push_back
(
reshape_conf
.
height
_
axis
(
i
));
}
}
for
(
size_t
i
=
0
;
i
<
reshape_conf
.
width
axis_size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
reshape_conf
.
width_
axis_size
();
i
++
)
{
widthAxis_
.
push_back
(
reshape_conf
.
widthaxis
(
i
));
widthAxis_
.
push_back
(
reshape_conf
.
width
_
axis
(
i
));
}
}
createFunction
(
nchw2nhwc_
,
"NCHW2NHWC"
,
FuncConfig
());
createFunction
(
nchw2nhwc_
,
"NCHW2NHWC"
,
FuncConfig
());
createFunction
(
nhwc2nchw_
,
"NHWC2NCHW"
,
FuncConfig
());
createFunction
(
nhwc2nchw_
,
"NHWC2NCHW"
,
FuncConfig
());
...
...
paddle/gserver/tests/test_LayerGrad.cpp
浏览文件 @
2f40da09
...
@@ -2019,10 +2019,10 @@ TEST(Layer, SwitchOrderLayer) {
...
@@ -2019,10 +2019,10 @@ TEST(Layer, SwitchOrderLayer) {
img
->
set_img_size_y
(
16
);
img
->
set_img_size_y
(
16
);
ReshapeConfig
*
reshape
=
config
.
layerConfig
.
mutable_reshape_conf
();
ReshapeConfig
*
reshape
=
config
.
layerConfig
.
mutable_reshape_conf
();
reshape
->
add_heightaxis
(
0
);
reshape
->
add_height
_
axis
(
0
);
reshape
->
add_heightaxis
(
1
);
reshape
->
add_height
_
axis
(
1
);
reshape
->
add_heightaxis
(
2
);
reshape
->
add_height
_
axis
(
2
);
reshape
->
add_widthaxis
(
3
);
reshape
->
add_width
_
axis
(
3
);
// config softmax layer
// config softmax layer
config
.
layerConfig
.
set_type
(
"switch_order"
);
config
.
layerConfig
.
set_type
(
"switch_order"
);
...
...
proto/ModelConfig.proto
浏览文件 @
2f40da09
...
@@ -288,8 +288,8 @@ message PadConfig {
...
@@ -288,8 +288,8 @@ message PadConfig {
}
}
message
ReshapeConfig
{
message
ReshapeConfig
{
repeated
uint32
height
A
xis
=
1
;
repeated
uint32
height
_a
xis
=
1
;
repeated
uint32
width
A
xis
=
2
;
repeated
uint32
width
_a
xis
=
2
;
}
}
message
MultiBoxLossConfig
{
message
MultiBoxLossConfig
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录