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

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

7
protostr=$PWD/protostr
8
. file_list.sh
9 10 11 12

for conf in ${configs[*]}
do
    echo "Generating " $conf
13
    python -m paddle.utils.dump_config $conf.py > $protostr/$conf.protostr.unittest
14
done
Y
Yu Yang 已提交
15 16 17 18

for conf in ${whole_configs[*]}
do
    echo "Generating " $conf
19
    python -m paddle.utils.dump_config $conf.py "" --whole > $protostr/$conf.protostr.unittest
Y
Yu Yang 已提交
20
done