Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions t/torchvision/torchvision_0.24.1_ubi_9.6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@
set -ex

PACKAGE_NAME=vision
PACKAGE_VERSION=${1:-v0.24.1}
PACKAGE_VERSION=${1:-v0.25.0}
PACKAGE_URL=https://github.com/pytorch/vision.git
OS_NAME=$(cat /etc/os-release | grep ^PRETTY_NAME | cut -d= -f2)
MAX_JOBS=${MAX_JOBS:-$(nproc)}
VERSION=${PACKAGE_VERSION#v}
PYTHON_VERSION=${2:-3.12}
PYTORCH_VERSION=${3:-v2.9.0}
if [ "$PACKAGE_VERSION" = "0.25.0" ]; then
PYTORCH_VERSION=${3:-v2.10.0}
else
PYTORCH_VERSION=${3:-v2.9.0}
fi

CURRENT_DIR=$(pwd)

Expand Down Expand Up @@ -602,6 +606,7 @@ cd $CURRENT_DIR
python3 -m pip install ./torchvision*.whl

python3 -m pip install pytest pytest-xdist
python3 -c "import torchvision"

if ! pytest $PACKAGE_NAME/test/common_extended_utils.py $PACKAGE_NAME/test/common_utils.py $PACKAGE_NAME/test/smoke_test.py $PACKAGE_NAME/test/test_architecture_ops.py $PACKAGE_NAME/test/test_datasets_video_utils_opt.py ; then
echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------"
Expand Down