Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
Merged
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
11 changes: 9 additions & 2 deletions .github/scripts/validate_test_ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ retry () {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}

BRANCH = "@main"
if [[ ${MATRIX_CHANNEL} == "test" ]]
SHORT_VERSION=${MATRIX_STABLE_VERSION%.*}
BRANCH="@release/${SHORT_VERSION}"
fi


# Clone the Pytorch branch
retry git clone --depth 1 https://github.com/pytorch/pytorch.git
retry git clone --depth 1 https://github.com/pytorch/pytorch.git${BRANCH}
retry git submodule update --init --recursive
pushd pytorch

pip install expecttest pyyaml jinja2
pip install expecttest pyyaml jinja2 packaging

# Run test_ops validation
export CUDA_LAUNCH_BLOCKING=1
Expand Down