From 3ba4d543a60319702eb1475f6edeb7053d9b832e Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Thu, 17 Jun 2021 13:51:45 +0800 Subject: [PATCH] python3.7 to --- test/infer.sh | 2 +- test/test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/infer.sh b/test/infer.sh index ad32ffc5..5b2c7d30 100644 --- a/test/infer.sh +++ b/test/infer.sh @@ -34,7 +34,7 @@ ${python} -m pip install pynvml; ${python} -m pip install psutil; ${python} -m pip install GPUtil; -paddle_info="$(python3.7 -c "import paddle;print(f'paddle_version:{paddle.__version__}');print(f'paddle_commit:{paddle.__git_commit__}')")" +paddle_info="$(${python} -c "import paddle;print(f'paddle_version:{paddle.__version__}');print(f'paddle_commit:{paddle.__git_commit__}')")" echo -e "\033[33m $paddle_info \033[0m" | tee -a ${status_log} cpu_model=`cat /proc/cpuinfo | grep "model name" | awk -F ':' '{print $2}' | sort | uniq` echo -e "\033[33m cpu_info:$cpu_model \033[0m" | tee -a ${status_log} diff --git a/test/test.sh b/test/test.sh index 63686401..5bb48ac5 100644 --- a/test/test.sh +++ b/test/test.sh @@ -75,7 +75,7 @@ ${python} -m pip install psutil; ${python} -m pip install GPUtil; ${python} -m pip install paddlesim==2.0.0 -paddle_info="$(python3.7 -c "import paddle;print(f'paddle_version:{paddle.__version__}');print(f'paddle_commit:{paddle.__git_commit__}')")" +paddle_info="$(${python} -c "import paddle;print(f'paddle_version:{paddle.__version__}');print(f'paddle_commit:{paddle.__git_commit__}')")" echo -e "\033[33m $paddle_info \033[0m" | tee -a ${status_log} cpu_model=`cat /proc/cpuinfo | grep "model name" | awk -F ':' '{print $2}' | sort | uniq` echo -e "\033[33m cpu_info:$cpu_model \033[0m" | tee -a ${status_log}