-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1872 from qingqing01/config_helper_test
Generate protostr automatically when adding a new test for trainer_config_helpers.
- Loading branch information
Showing
4 changed files
with
129 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 120 additions & 0 deletions
120
python/paddle/trainer_config_helpers/tests/configs/protostr/test_pad.protostr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
type: "nn" | ||
layers { | ||
name: "data" | ||
type: "data" | ||
size: 2016 | ||
active_type: "" | ||
height: 48 | ||
width: 42 | ||
} | ||
layers { | ||
name: "__conv_0__" | ||
type: "exconv" | ||
size: 32256 | ||
active_type: "" | ||
inputs { | ||
input_layer_name: "data" | ||
input_parameter_name: "___conv_0__.w0" | ||
conv_conf { | ||
filter_size: 3 | ||
channels: 1 | ||
stride: 1 | ||
padding: 1 | ||
groups: 1 | ||
filter_channels: 1 | ||
output_x: 42 | ||
img_size: 42 | ||
caffe_mode: true | ||
filter_size_y: 3 | ||
padding_y: 1 | ||
stride_y: 1 | ||
output_y: 48 | ||
img_size_y: 48 | ||
} | ||
} | ||
bias_parameter_name: "___conv_0__.wbias" | ||
num_filters: 16 | ||
shared_biases: true | ||
height: 48 | ||
width: 42 | ||
} | ||
layers { | ||
name: "__pool_0__" | ||
type: "pool" | ||
size: 8064 | ||
active_type: "" | ||
inputs { | ||
input_layer_name: "__conv_0__" | ||
pool_conf { | ||
pool_type: "max-projection" | ||
channels: 16 | ||
size_x: 2 | ||
stride: 2 | ||
output_x: 21 | ||
img_size: 42 | ||
padding: 0 | ||
size_y: 2 | ||
stride_y: 2 | ||
output_y: 24 | ||
img_size_y: 48 | ||
padding_y: 0 | ||
} | ||
} | ||
height: 24 | ||
width: 21 | ||
} | ||
layers { | ||
name: "__pad_0__" | ||
type: "pad" | ||
size: 14175 | ||
active_type: "" | ||
inputs { | ||
input_layer_name: "__pool_0__" | ||
pad_conf { | ||
image_conf { | ||
channels: 16 | ||
img_size: 21 | ||
img_size_y: 24 | ||
} | ||
pad_c: 2 | ||
pad_c: 3 | ||
pad_h: 1 | ||
pad_h: 2 | ||
pad_w: 3 | ||
pad_w: 1 | ||
} | ||
} | ||
height: 27 | ||
width: 25 | ||
} | ||
parameters { | ||
name: "___conv_0__.w0" | ||
size: 144 | ||
initial_mean: 0.0 | ||
initial_std: 0.471404520791 | ||
initial_strategy: 0 | ||
initial_smart: false | ||
} | ||
parameters { | ||
name: "___conv_0__.wbias" | ||
size: 16 | ||
initial_mean: 0.0 | ||
initial_std: 0.0 | ||
dims: 16 | ||
dims: 1 | ||
initial_strategy: 0 | ||
initial_smart: false | ||
} | ||
input_layer_names: "data" | ||
output_layer_names: "__pad_0__" | ||
sub_models { | ||
name: "root" | ||
layer_names: "data" | ||
layer_names: "__conv_0__" | ||
layer_names: "__pool_0__" | ||
layer_names: "__pad_0__" | ||
input_layer_names: "data" | ||
output_layer_names: "__pad_0__" | ||
is_recurrent_layer_group: false | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters