提交 6786a5b1 编写于 作者: S suweiyue

rm env setting

上级 f4bdc973
...@@ -37,18 +37,8 @@ fi ...@@ -37,18 +37,8 @@ fi
export FLAGS_communicator_recv_wait_times=5000000 export FLAGS_communicator_recv_wait_times=5000000
export PATH=/opt/compiler/gcc-4.8.2/bin:$PATH
PYTHONPATH=`which python`
PYTHONPATH=`dirname $PYTHONPATH`
PYTHONPATH=`readlink -f $PYTHONPATH/../`
export PATH=$PYTHONPATH/bin/:$PATH
which python
mkdir -p output mkdir -p output
echo "PADDLE_PSERVERS" $PADDLE_PSERVERS
echo $CPU_NUM
python ./train.py --conf $config python ./train.py --conf $config
if [[ $TRAINING_ROLE == "TRAINER" ]];then if [[ $TRAINING_ROLE == "TRAINER" ]];then
python ./infer.py --conf $config python ./infer.py --conf $config
......
...@@ -27,7 +27,6 @@ transpiler_local_train(){ ...@@ -27,7 +27,6 @@ transpiler_local_train(){
export PADDLE_PORT=6206 export PADDLE_PORT=6206
export PADDLE_PSERVERS="127.0.0.1" export PADDLE_PSERVERS="127.0.0.1"
export BASE="./local_dir" export BASE="./local_dir"
export PATH=./python27-gcc482/bin/:$PATH
echo `which python` echo `which python`
if [ -d ${BASE} ]; then if [ -d ${BASE} ]; then
rm -rf ${BASE} rm -rf ${BASE}
...@@ -60,8 +59,8 @@ collective_local_train(){ ...@@ -60,8 +59,8 @@ collective_local_train(){
eval $(parse_yaml $config) eval $(parse_yaml $config)
unalias python unalias python
#python3 ./preprocessing/dump_graph.py -i $input_data -o $graph_path --encoding $encoding \ python3 ./preprocessing/dump_graph.py -i $input_data -o $graph_path --encoding $encoding \
#-l $max_seqlen --vocab_file $ernie_vocab_file -l $max_seqlen --vocab_file $ernie_vocab_file
if [[ $learner_type == "cpu" ]];then if [[ $learner_type == "cpu" ]];then
transpiler_local_train transpiler_local_train
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册