2019-01-31 15:27:38 +01:00
|
|
|
#!/usr/bin/env sh
|
2019-03-29 17:50:18 +01:00
|
|
|
if [ "$#" -ne 1 ] ;then
|
2019-01-31 15:27:38 +01:00
|
|
|
echo "Input illegal number of parameters " $#
|
2019-03-29 17:50:18 +01:00
|
|
|
echo "Need 1 parameters for the GPU and the architecture"
|
2019-01-31 15:27:38 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2019-03-29 17:50:18 +01:00
|
|
|
arch=$1
|
|
|
|
SAVED=./output/NAS-RNN/Search-${arch}-PTB
|
2019-03-29 19:10:20 +01:00
|
|
|
PY_C="./env/bin/python"
|
2019-01-31 15:27:38 +01:00
|
|
|
|
2019-03-29 19:10:20 +01:00
|
|
|
if [ ! -f ${PY_C} ]; then
|
|
|
|
echo "Local Run with Python: "`which python`
|
|
|
|
PY_C="python"
|
|
|
|
else
|
|
|
|
echo "Cluster Run with Python: "${PY_C}
|
|
|
|
fi
|
|
|
|
|
|
|
|
${PY_C} --version
|
|
|
|
|
|
|
|
${PY_C} ./exps-rnn/train_rnn_base.py \
|
2019-01-31 15:27:38 +01:00
|
|
|
--arch ${arch} \
|
|
|
|
--save_path ${SAVED} \
|
|
|
|
--config_path ./configs/NAS-PTB-BASE.config \
|
|
|
|
--print_freq 200
|