Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
2ab928d1
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看板
提交
2ab928d1
编写于
11月 15, 2017
作者:
X
xzl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify the prelu test and regenerate the proto
上级
f9469d33
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
84 addition
and
15 deletion
+84
-15
python/paddle/trainer_config_helpers/tests/configs/protostr/test_prelu_layer.protostr
..._helpers/tests/configs/protostr/test_prelu_layer.protostr
+78
-11
python/paddle/trainer_config_helpers/tests/configs/test_prelu_layer.py
.../trainer_config_helpers/tests/configs/test_prelu_layer.py
+6
-4
未找到文件。
python/paddle/trainer_config_helpers/tests/configs/protostr/test_prelu_layer.protostr
浏览文件 @
2ab928d1
...
@@ -4,6 +4,8 @@ layers {
...
@@ -4,6 +4,8 @@ layers {
type: "data"
type: "data"
size: 300
size: 300
active_type: ""
active_type: ""
height: 10
width: 10
}
}
layers {
layers {
name: "__prelu_layer_0__"
name: "__prelu_layer_0__"
...
@@ -15,6 +17,9 @@ layers {
...
@@ -15,6 +17,9 @@ layers {
input_parameter_name: "___prelu_layer_0__.w0"
input_parameter_name: "___prelu_layer_0__.w0"
}
}
partial_sum: 1
partial_sum: 1
height: 10
width: 10
depth: 1
}
}
layers {
layers {
name: "__prelu_layer_1__"
name: "__prelu_layer_1__"
...
@@ -26,6 +31,9 @@ layers {
...
@@ -26,6 +31,9 @@ layers {
input_parameter_name: "___prelu_layer_1__.w0"
input_parameter_name: "___prelu_layer_1__.w0"
}
}
partial_sum: 1
partial_sum: 1
height: 10
width: 10
depth: 1
}
}
layers {
layers {
name: "__prelu_layer_2__"
name: "__prelu_layer_2__"
...
@@ -37,41 +45,100 @@ layers {
...
@@ -37,41 +45,100 @@ layers {
input_parameter_name: "___prelu_layer_2__.w0"
input_parameter_name: "___prelu_layer_2__.w0"
}
}
partial_sum: 5
partial_sum: 5
height: 10
width: 10
depth: 1
}
layers {
name: "__prelu_layer_3__"
type: "prelu"
size: 300
active_type: ""
inputs {
input_layer_name: "input"
input_parameter_name: "___prelu_layer_3__.w0"
}
partial_sum: 300
height: 10
width: 10
depth: 1
}
layers {
name: "__prelu_layer_4__"
type: "prelu"
size: 300
active_type: ""
inputs {
input_layer_name: "input"
input_parameter_name: "___prelu_layer_4__.w0"
}
partial_sum: 100
height: 10
width: 10
depth: 1
}
}
parameters {
parameters {
name: "___prelu_layer_0__.w0"
name: "___prelu_layer_0__.w0"
size: 300
size: 300
initial_mean: 0.0
initial_mean: 0.25
initial_std: 0.057735026919
initial_std: 0.0
dims: 1
dims: 300
initial_strategy: 0
initial_strategy: 0
initial_smart:
tru
e
initial_smart:
fals
e
}
}
parameters {
parameters {
name: "___prelu_layer_1__.w0"
name: "___prelu_layer_1__.w0"
size: 300
size: 300
initial_mean: 0.0
initial_mean: 0.25
initial_std: 0.057735026919
initial_std: 0.0
dims: 1
dims: 300
initial_strategy: 0
initial_strategy: 0
initial_smart:
tru
e
initial_smart:
fals
e
}
}
parameters {
parameters {
name: "___prelu_layer_2__.w0"
name: "___prelu_layer_2__.w0"
size: 60
size: 60
initial_mean: 0.0
initial_mean: 0.25
initial_std: 0.129099444874
initial_std: 0.0
dims: 1
dims: 60
initial_strategy: 0
initial_smart: false
}
parameters {
name: "___prelu_layer_3__.w0"
size: 1
initial_mean: 0.25
initial_std: 0.0
dims: 1
dims: 1
initial_strategy: 0
initial_smart: false
}
parameters {
name: "___prelu_layer_4__.w0"
size: 3
initial_mean: 0.25
initial_std: 0.0
dims: 1
dims: 3
initial_strategy: 0
initial_strategy: 0
initial_smart:
tru
e
initial_smart:
fals
e
}
}
input_layer_names: "input"
input_layer_names: "input"
output_layer_names: "__prelu_layer_
2
__"
output_layer_names: "__prelu_layer_
4
__"
sub_models {
sub_models {
name: "root"
name: "root"
layer_names: "input"
layer_names: "input"
layer_names: "__prelu_layer_0__"
layer_names: "__prelu_layer_0__"
layer_names: "__prelu_layer_1__"
layer_names: "__prelu_layer_1__"
layer_names: "__prelu_layer_2__"
layer_names: "__prelu_layer_2__"
layer_names: "__prelu_layer_3__"
layer_names: "__prelu_layer_4__"
input_layer_names: "input"
input_layer_names: "input"
output_layer_names: "__prelu_layer_
2
__"
output_layer_names: "__prelu_layer_
4
__"
is_recurrent_layer_group: false
is_recurrent_layer_group: false
}
}
python/paddle/trainer_config_helpers/tests/configs/test_prelu_layer.py
浏览文件 @
2ab928d1
from
paddle.trainer_config_helpers
import
*
from
paddle.trainer_config_helpers
import
*
data
=
data_layer
(
name
=
'input'
,
size
=
300
)
data
=
data_layer
(
name
=
'input'
,
size
=
300
,
height
=
10
,
width
=
10
)
prelu
=
prelu_layer
(
input
=
data
)
prelu
=
prelu_layer
(
input
=
data
,
num_channels
=
3
)
prelu
=
prelu_layer
(
input
=
data
,
partial_sum
=
1
)
prelu
=
prelu_layer
(
input
=
data
,
partial_sum
=
1
,
num_channels
=
3
)
prelu
=
prelu_layer
(
input
=
data
,
partial_sum
=
5
)
prelu
=
prelu_layer
(
input
=
data
,
partial_sum
=
5
,
num_channels
=
3
)
prelu
=
prelu_layer
(
input
=
data
,
channel_shared
=
True
,
num_channels
=
3
)
prelu
=
prelu_layer
(
input
=
data
,
channel_shared
=
False
,
num_channels
=
3
)
outputs
(
prelu
)
outputs
(
prelu
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录