clear_env.sh 465 字节
Newer Older
Y
yejianwu 已提交
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash

Usage() {
  echo "Usage: bash tools/clear_env.sh target_soc"
}

if [ $# -lt 1 ]; then
  Usage
  exit 1
fi

12 13 14
CURRENT_DIR=`dirname $0`
source ${CURRENT_DIR}/env.sh

Y
yejianwu 已提交
15 16 17
TARGET_SOC=$1
DEVICE_ID=`echo_device_id_by_soc $TARGET_SOC`

18
if [ x"$TARGET_ABI" != x"host" ]; then
Y
yejianwu 已提交
19
  adb -s $DEVICE_ID shell rm -rf $PHONE_DATA_DIR || exit 1
Y
yejianwu 已提交
20
fi
21

Y
yejianwu 已提交
22 23
rm -rf mace/codegen/models
git checkout -- mace/codegen/opencl/opencl_compiled_program.cc mace/codegen/tuning/tuning_params.cc