From c7b45c54482f853ed7e4ddf1fbbde8e8eb5f1e7c Mon Sep 17 00:00:00 2001 From: Mustafa Bal <5262061+mstfbl@users.noreply.github.com> Date: Wed, 17 Nov 2021 14:57:59 -0800 Subject: [PATCH] Removed caffe2 testing in LTS binary builds --- check_binary.sh | 1 - run_tests.sh | 4 ---- windows/internal/smoke_test.bat | 3 --- 3 files changed, 8 deletions(-) diff --git a/check_binary.sh b/check_binary.sh index a8e8d7946..467abe86f 100755 --- a/check_binary.sh +++ b/check_binary.sh @@ -300,7 +300,6 @@ if [[ "$PACKAGE_TYPE" == 'libtorch' ]]; then else pushd /tmp python -c 'import torch' - python -c 'from caffe2.python import core' popd fi diff --git a/run_tests.sh b/run_tests.sh index b7e72841e..10dd21da4 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -78,9 +78,6 @@ if [[ "$package_type" == conda || "$(uname)" == Darwin ]]; then fi # Install the testing dependencies retry conda install -yq future hypothesis protobuf=3.14.0 pytest setuptools six typing_extensions pyyaml - if [[ "$package_type" == wheel ]]; then - # Numpy dependency is now dynamic but old caffe2 test assume its always there - retry conda install -yq numpy fi else retry pip install -qr requirements.txt || true @@ -105,7 +102,6 @@ conda list || true pushd / echo "Smoke testing imports" python -c 'import torch' -python -c 'from caffe2.python import core' # Test that MKL is there if [[ "$(uname)" == 'Darwin' && "$package_type" == *wheel ]]; then diff --git a/windows/internal/smoke_test.bat b/windows/internal/smoke_test.bat index faa8813ce..bc2cfbba2 100644 --- a/windows/internal/smoke_test.bat +++ b/windows/internal/smoke_test.bat @@ -125,9 +125,6 @@ if ERRORLEVEL 1 exit /b 1 python -c "import torch" if ERRORLEVEL 1 exit /b 1 -python -c "from caffe2.python import core" -if ERRORLEVEL 1 exit /b 1 - echo Checking that MKL is available python -c "import torch; exit(0 if torch.backends.mkl.is_available() else 1)" if ERRORLEVEL 1 exit /b 1