Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lapis-hong committed Mar 22, 2018
1 parent b1f4284 commit 7e5e1bd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions python/spark/run.sh → scripts/data_preprocess.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash


cd ../python/spark
# Run on a YARN cluster
# export HADOOP_CONF_DIR=XXX
# Configuration details see http://spark.apache.org/docs/latest/configuration.html
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/ps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ dir=/home/dinghongquan/wide_deep/python
cur_dir=$(cd `dirname $0`; pwd)
log_dir=`dirname ${cur_dir}`/log

cd `dirname ${cur_dir}`/python
cd ${dir}
echo "Start Parameter Server for Distributed TensorFlow."
nohup python train.py > ${log_dir}/dist.log 2>&1 &


i=1
for host in ${hosts[@]}
do
ssh -p 1046 ${host} "cd ${dir}; nohup python train.py > ../log/dist.log 2>&1 &"
ssh -p 1046 ${host} "cd ${dir}; nohup python train.py > ${log_dir}/dist.log 2>&1 &"
echo "Worker ${i} is ready."
let i+=1
done
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_serving.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ do
esac
done

cd ../python
cd ../python/tensorflow_serving
python export_savedmodel.py
echo "Already export SavedModel."

Expand Down

0 comments on commit 7e5e1bd

Please sign in to comment.