generate_protostr.sh 869 字节
Newer Older
1 2 3 4 5 6
#!/bin/bash

set -e
cd `dirname $0`
export PYTHONPATH=$PWD/../../../../

7 8
protostr=$PWD/protostr

9 10 11
configs=(test_fc layer_activations projections test_print_layer
test_sequence_pooling test_lstmemory_layer test_grumemory_layer
last_first_seq test_expand_layer test_ntm_layers test_hsigmoid
12
img_layers img_trans_layers util_layers simple_rnn_layers unused_layers test_cost_layers
13
test_rnn_group shared_fc shared_lstm test_cost_layers_with_weight
Y
Yu Yang 已提交
14
test_spp_layer test_bilinear_interp test_maxout test_bi_grumemory math_ops)
15

Y
Yu Yang 已提交
16
whole_configs=(test_split_datasource)
17 18 19 20

for conf in ${configs[*]}
do
    echo "Generating " $conf
21
    python -m paddle.utils.dump_config $conf.py > $protostr/$conf.protostr.unitest
22
done
Y
Yu Yang 已提交
23 24 25 26 27 28

for conf in ${whole_configs[*]}
do
    echo "Generating " $conf
    python -m paddle.utils.dump_config $conf.py "" --whole > $protostr/$conf.protostr.unitest
done