Skip to content

Commit

Permalink
Re-enable torchdynamo unit tests (#86658)
Browse files Browse the repository at this point in the history
Pull Request resolved: #86658
Approved by: https://github.com/jansel
  • Loading branch information
desertfire authored and pytorchmergebot committed Oct 12, 2022
1 parent 692b525 commit ce48df9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/ci_commit_pins/torchdynamo.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3f92a095ae72ab276e1efe0466771996292544c5
d4b62d69a2d5ae1823c1d6695237b44faee05acd
4 changes: 4 additions & 0 deletions .jenkins/pytorch/common_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ function clone_pytorch_xla() {
fi
}

function install_filelock() {
pip_install filelock
}

function install_torchdynamo() {
local commit
commit=$(get_pinned_commit torchdynamo)
Expand Down
6 changes: 3 additions & 3 deletions .jenkins/pytorch/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ test_vec256() {

test_dynamo() {
pushd ../torchdynamo
pytest test
pytest test/dynamo
popd
}

Expand Down Expand Up @@ -703,8 +703,8 @@ elif [[ "${TEST_CONFIG}" == *dynamo* && "${SHARD_NUMBER}" == 2 && $NUM_TEST_SHAR
install_torchvision
checkout_install_torchdynamo
test_dynamo_shard 2
# Skip running test in the dynamo repo to unblock the dynamo pin update
# test_dynamo
install_filelock
test_dynamo
elif [[ "${SHARD_NUMBER}" == 1 && $NUM_TEST_SHARDS -gt 1 ]]; then
test_without_numpy
install_torchvision
Expand Down

0 comments on commit ce48df9

Please sign in to comment.