File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,11 @@ export CMAKE_PREFIX_PATH=$CONDA_ROOT_PREFIX
180
180
echo " Python Version:"
181
181
python --version
182
182
183
+ # Uninstall onnx and onnx-caffe2; if stale versions are left over,
184
+ # we may spuriously run test/test_onnx.py when we don't want to
185
+ pip uninstall -y onnx || true
186
+ pip uninstall -y onnx-caffe2 || true
187
+
183
188
echo " Installing $PROJECT at branch $GIT_BRANCH and commit $GIT_COMMIT "
184
189
rm -rf $PROJECT
185
190
git clone https://github.com/pytorch/$PROJECT --quiet
@@ -220,8 +225,6 @@ if [ ! -z "$jenkins_nightly" ]; then
220
225
(cd onnx-pytorch && python setup.py install)
221
226
python onnx-pytorch/test/test_models.py
222
227
python onnx-pytorch/test/test_caffe2.py
223
- pip uninstall -y onnx || true
224
- pip uninstall -y onnx-caffe2 || true
225
228
fi
226
229
227
230
echo " Testing pytorch"
You can’t perform that action at this time.
0 commit comments