8000 tc · pytorch/pytorch@21ccf17 · GitHub
[go: up one dir, main page]

Skip to content

Commit 21ccf17

Browse files
committed
tc
1 parent 5663ad9 commit 21ccf17

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

.ci/pytorch/macos-test.sh

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -276,25 +276,6 @@ test_timm_perf() {
276276

277277
install_tlparse
278278

279-
if [[ $TEST_CONFIG == *"test_mps"* ]]; then
280-
if [[ $NUM_TEST_SHARDS -gt 1 ]]; then
281-
test_python_shard "${SHARD_NUMBER}"
282-
if [[ "${SHARD_NUMBER}" == 1 ]]; then
283-
test_libtorch
284-
test_custom_script_ops
285-
elif [[ "${SHARD_NUMBER}" == 2 ]]; then
286-
test_jit_hooks
287-
test_custom_backend
288-
fi
289-
else
290-
test_python_all
291-
test_libtorch
292-
test_custom_script_ops
293-
test_jit_hooks
294-
test_custom_backend
295-
fi
296-
fi
297-
298279
if [[ $TEST_CONFIG == *"perf_all"* ]]; then
299280
test_torchbench_perf
300281
test_hf_perf
@@ -307,4 +288,19 @@ elif [[ $TEST_CONFIG == *"perf_timm"* ]]; then
307288
test_timm_perf
308289
elif [[ $TEST_CONFIG == *"perf_smoketest"* ]]; then
309290
test_torchbench_smoketest
291+
elif [[ $NUM_TEST_SHARDS -gt 1 ]]; then
292+
test_python_shard "${SHARD_NUMBER}"
293+
if [[ "${SHARD_NUMBER}" == 1 ]]; then
294+
test_libtorch
295+
test_custom_script_ops
296+
elif [[ "${SHARD_NUMBER}" == 2 ]]; then
297+
test_jit_hooks
298+
test_custom_backend
299+
fi
300+
else
301+
test_python_all
302+
test_libtorch
303+
test_custom_script_ops
304+
test_jit_hooks
305+
test_custom_backend
310306
fi

0 commit comments

Comments
 (0)
0