Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
2e97045c
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2e97045c
编写于
8月 31, 2017
作者:
C
chengduoZH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix layers_test.py
上级
2ae37a4e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
53 addition
and
46 deletion
+53
-46
python/paddle/trainer_config_helpers/tests/configs/file_list.sh
.../paddle/trainer_config_helpers/tests/configs/file_list.sh
+1
-1
python/paddle/trainer_config_helpers/tests/configs/test_conv3d_layer.py
...trainer_config_helpers/tests/configs/test_conv3d_layer.py
+1
-43
python/paddle/trainer_config_helpers/tests/configs/test_deconv3d_layer.py
...ainer_config_helpers/tests/configs/test_deconv3d_layer.py
+50
-0
python/paddle/trainer_config_helpers/tests/layers_test.py
python/paddle/trainer_config_helpers/tests/layers_test.py
+1
-2
未找到文件。
python/paddle/trainer_config_helpers/tests/configs/file_list.sh
浏览文件 @
2e97045c
...
...
@@ -9,6 +9,6 @@ test_seq_concat_reshape test_pad test_smooth_l1 test_multiplex_layer
test_prelu_layer test_row_conv test_detection_output_layer test_multibox_loss_layer
test_recursive_topology test_gated_unit_layer test_clip_layer test_row_l2_norm_layer
test_kmax_seq_socre_layer test_seq_select_layers test_scale_shift_layer
test_seq_slice_layer
)
test_seq_slice_layer
test_conv3d_layer test_deconv3d_layer
)
export
whole_configs
=(
test_split_datasource
)
python/paddle/trainer_config_helpers/tests/configs/
conv3d_deconv3d_test_config
.py
→
python/paddle/trainer_config_helpers/tests/configs/
test_conv3d_layer
.py
浏览文件 @
2e97045c
...
...
@@ -14,18 +14,6 @@ padding_y = 1
padding_z
=
1
groups
=
1
data1
=
data_layer
(
name
=
'data1'
,
size
=
2016
*
num_channels
,
height
=
48
,
width
=
42
)
img_conv_layer
(
input
=
data1
,
filter_size
=
filter_size
,
num_channels
=
num_channels
,
num_filters
=
16
,
stride
=
stride
,
padding
=
padding
,
act
=
LinearActivation
(),
bias_attr
=
False
)
data
=
data_layer
(
name
=
'data'
,
size
=
12096
*
num_channels
,
height
=
48
,
width
=
42
,
depth
=
6
)
# first
...
...
@@ -58,34 +46,4 @@ conv3d_2 = img_conv3d_layer(
trans
=
False
,
layer_type
=
"conv3d"
,
act
=
LinearActivation
())
# first
deconv3d_1
=
img_conv3d_layer
(
input
=
data
,
name
=
'deconv3d_1'
,
num_filters
=
16
,
num_channels
=
num_channels
,
filter_size
=
filter_size
,
stride
=
stride
,
padding
=
padding
,
groups
=
groups
,
bias_attr
=
True
,
shared_biases
=
True
,
trans
=
False
,
layer_type
=
"deconv3d"
,
act
=
LinearActivation
())
# second
deconv3d_2
=
img_conv3d_layer
(
input
=
data
,
name
=
'deconv3d_2'
,
num_filters
=
16
,
num_channels
=
num_channels
,
filter_size
=
[
filter_size
,
filter_size_y
,
filter_size_z
],
stride
=
[
stride
,
stride_y
,
stride_z
],
padding
=
[
padding
,
padding_y
,
padding_z
],
groups
=
groups
,
bias_attr
=
True
,
shared_biases
=
True
,
trans
=
False
,
layer_type
=
"deconv3d"
,
act
=
LinearActivation
())
outputs
(
conv3d_2
)
python/paddle/trainer_config_helpers/tests/configs/test_deconv3d_layer.py
0 → 100644
浏览文件 @
2e97045c
from
paddle.trainer_config_helpers
import
*
settings
(
batch_size
=
1000
,
learning_rate
=
1e-5
)
num_channels
=
3
filter_size
=
3
filter_size_y
=
3
filter_size_z
=
3
stride
=
2
stride_y
=
2
stride_z
=
2
padding
=
1
padding_y
=
1
padding_z
=
1
groups
=
1
data
=
data_layer
(
name
=
'data'
,
size
=
12096
*
num_channels
,
height
=
48
,
width
=
42
,
depth
=
6
)
# first
deconv3d_1
=
img_conv3d_layer
(
input
=
data
,
name
=
'deconv3d_1'
,
num_filters
=
16
,
num_channels
=
num_channels
,
filter_size
=
filter_size
,
stride
=
stride
,
padding
=
padding
,
groups
=
groups
,
bias_attr
=
True
,
shared_biases
=
True
,
trans
=
True
,
layer_type
=
"deconv3d"
,
act
=
LinearActivation
())
# second
deconv3d_2
=
img_conv3d_layer
(
input
=
data
,
name
=
'deconv3d_2'
,
num_filters
=
16
,
num_channels
=
num_channels
,
filter_size
=
[
filter_size
,
filter_size_y
,
filter_size_z
],
stride
=
[
stride
,
stride_y
,
stride_z
],
padding
=
[
padding
,
padding_y
,
padding_z
],
groups
=
groups
,
bias_attr
=
True
,
shared_biases
=
True
,
trans
=
True
,
layer_type
=
"deconv3d"
,
act
=
LinearActivation
())
outputs
(
deconv3d_2
)
python/paddle/trainer_config_helpers/tests/layers_test.py
浏览文件 @
2e97045c
...
...
@@ -16,6 +16,5 @@ from paddle.trainer.config_parser import parse_config_and_serialize
if
__name__
==
'__main__'
:
parse_config_and_serialize
(
'trainer_config_helpers/tests/configs/conv3d_deconv3d_test_config.py'
,
''
)
'trainer_config_helpers/tests/layers_test_config.py'
,
''
)
# layers_test_config.py
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录