From 9c7c2999e4d3f288766581b67366fb382369c488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=9B=BD=E5=BA=86?= <3224925783@qq.com> Date: Mon, 17 Jul 2023 07:05:27 +0000 Subject: [PATCH 1/2] add TensorFlow2/built-in/nlp/bert-squad_ID1566_for_TensorFlow2.X/test/set_conda.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王国庆 <3224925783@qq.com> --- .../nlp/bert-squad_ID1566_for_TensorFlow2.X/test/set_conda.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 TensorFlow2/built-in/nlp/bert-squad_ID1566_for_TensorFlow2.X/test/set_conda.sh diff --git a/TensorFlow2/built-in/nlp/bert-squad_ID1566_for_TensorFlow2.X/test/set_conda.sh b/TensorFlow2/built-in/nlp/bert-squad_ID1566_for_TensorFlow2.X/test/set_conda.sh new file mode 100644 index 000000000..55087d862 --- /dev/null +++ b/TensorFlow2/built-in/nlp/bert-squad_ID1566_for_TensorFlow2.X/test/set_conda.sh @@ -0,0 +1,2 @@ +export PATH=/home/anaconda3/bin:$PATH +export LD_LIBRARY_PATH=/home/anaconda3/lib:$LD_LIBRARY_PATH \ No newline at end of file -- Gitee From ef68edbe525b4e7099262c8b3a1fb90b434518ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=9B=BD=E5=BA=86?= <3224925783@qq.com> Date: Mon, 17 Jul 2023 07:09:08 +0000 Subject: [PATCH 2/2] update TensorFlow2/built-in/nlp/bert-squad_ID1566_for_TensorFlow2.X/test/train_performance_1p.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王国庆 <3224925783@qq.com> --- .../test/train_performance_1p.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TensorFlow2/built-in/nlp/bert-squad_ID1566_for_TensorFlow2.X/test/train_performance_1p.sh b/TensorFlow2/built-in/nlp/bert-squad_ID1566_for_TensorFlow2.X/test/train_performance_1p.sh index 29b4d082a..c457b7d20 100644 --- a/TensorFlow2/built-in/nlp/bert-squad_ID1566_for_TensorFlow2.X/test/train_performance_1p.sh +++ b/TensorFlow2/built-in/nlp/bert-squad_ID1566_for_TensorFlow2.X/test/train_performance_1p.sh @@ -82,6 +82,10 @@ do fusion_off_file=`echo ${para#*=}` elif [[ $para == --auto_tune* ]];then auto_tune=`echo ${para#*=}` + elif [[ $para == --conda_name* ]];then + conda_name=`echo ${para#*=}` + source $cur_path/test/set_conda.sh + source activate $conda_name fi done ############维测参数############## -- Gitee