@@ -63,27 +63,28 @@ cp ../../python_models/python_version/model.py ./models/python_3_7/1/
63
63
cp python_backend/builddir/triton_python_backend_stub ./models/python_3_7
64
64
conda deactivate
65
65
66
- # Use python-3-5 without conda pack
67
- # Create a model with python 3.5 version
66
+ # Use python-3-7 without conda pack
67
+ # Create a model with python 3.7 version and numpy 1.20.3 to distinguish from
68
+ # previous test.
68
69
# Tensorflow 2.1.0 only works with Python 3.4 - 3.7. Successful execution of
69
70
# the Python model indicates that the environment has been setup correctly.
70
- path_to_conda_pack=" $PWD /python-3-5 "
71
- create_conda_env_with_specified_path " 3.5 " $path_to_conda_pack
72
- conda install numpy=1.18.1 -y
71
+ path_to_conda_pack=" $PWD /python-3-7-1 "
72
+ create_conda_env_with_specified_path " 3.7 " $path_to_conda_pack
73
+ conda install numpy=1.20.3 -y
73
74
conda install tensorflow=2.1.0 -y
74
75
conda install -c conda-forge libstdcxx-ng=12 -y
75
76
76
- PY35_VERSION_STRING =" Python version is 3.5 , NumPy version is 1.18.1 , and Tensorflow version is 2.1.0"
77
+ PY37_1_VERSION_STRING =" Python version is 3.7 , NumPy version is 1.20.3 , and Tensorflow version is 2.1.0"
77
78
create_python_backend_stub
78
- mkdir -p models/python_3_5 /1/
79
- cp ../../python_models/python_version/config.pbtxt ./models/python_3_5
80
- (cd models/python_3_5 && \
81
- sed -i " s/^name:.*/name: \" python_3_5 \" /" config.pbtxt && \
79
+ mkdir -p models/python_3_7_1 /1/
80
+ cp ../../python_models/python_version/config.pbtxt ./models/python_3_7_1
81
+ (cd models/python_3_7_1 && \
82
+ sed -i " s/^name:.*/name: \" python_3_7_1 \" /" config.pbtxt && \
82
83
echo " parameters: {key: \" EXECUTION_ENV_PATH\" , value: {string_value: \" $path_to_conda_pack \" }}" >> config.pbtxt)
83
- cp ../../python_models/python_version/model.py ./models/python_3_5 /1/
84
+ cp ../../python_models/python_version/model.py ./models/python_3_7_1 /1/
84
85
# Copy activate script to folder
85
- cp $path_to_conda_pack /lib/python3.5 /site-packages/conda_pack/scripts/posix/activate $path_to_conda_pack /bin/.
86
- cp python_backend/builddir/triton_python_backend_stub ./models/python_3_5
86
+ cp $path_to_conda_pack /lib/python3.7 /site-packages/conda_pack/scripts/posix/activate $path_to_conda_pack /bin/.
87
+ cp python_backend/builddir/triton_python_backend_stub ./models/python_3_7_1
87
88
conda deactivate
88
89
89
90
# Create a model with python 3.6 version
@@ -138,7 +139,7 @@ kill $SERVER_PID
138
139
wait $SERVER_PID
139
140
140
141
set +e
141
- for EXPECTED_VERSION_STRING in " $PY35_VERSION_STRING " " $PY36_VERSION_STRING " " $PY37_VERSION_STRING " " $PY310_VERSION_STRING " ; do
142
+ for EXPECTED_VERSION_STRING in " $PY36_VERSION_STRING " " $PY37_VERSION_STRING " " $PY37_1_VERSION_STRING " " $PY310_VERSION_STRING " ; do
142
143
grep " $EXPECTED_VERSION_STRING " $SERVER_LOG
143
144
if [ $? -ne 0 ]; then
144
145
cat $SERVER_LOG
0 commit comments