!6269 [MSLITE][Develop] add common path input parameter for test shell

Merge pull request !6269 from yangruoqi713/lite
pull/6269/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 7cf3ebf6b1

@ -629,6 +629,7 @@ OpParameter *PopulateActivationParameter(const mindspore::lite::PrimitiveC *prim
return nullptr;
}
memset(act_param, 0, sizeof(ActivationParameter));
act_param->op_parameter_.type_ = primitive->Type();
auto activation =
reinterpret_cast<mindspore::lite::Activation *>(const_cast<mindspore::lite::PrimitiveC *>(primitive));
act_param->type_ = static_cast<int>(activation->GetType());

@ -526,8 +526,8 @@ basepath=$(pwd)
echo ${basepath}
#set -e
# Example:sh run_benchmark_nets.sh -a /home/temp_test -c /home/temp_test -m /home/temp_test/models -d "8KE5T19620002408"
while getopts "a:c:m:d:" opt; do
# Example:sh run_benchmark_nets.sh -a /home/temp_test -c /home/temp_test -r /home/temp_test -m /home/temp_test/models -d "8KE5T19620002408"
while getopts "a:c:r:m:d:" opt; do
case ${opt} in
a)
arm_path=${OPTARG}
@ -537,6 +537,10 @@ while getopts "a:c:m:d:" opt; do
x86_path=${OPTARG}
echo "x86_path is ${OPTARG}"
;;
r)
release_path=${OPTARG}
echo "release_path is ${OPTARG}"
;;
m)
models_path=${OPTARG}
echo "models_path is ${OPTARG}"
@ -551,6 +555,8 @@ while getopts "a:c:m:d:" opt; do
esac
done
echo ${release_path}
mkdir train
mv ${arm_path}/*runtime-*train* ./train
file_name=$(ls ${arm_path}/*runtime-arm64*.tar.gz)

Loading…
Cancel
Save