mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
onnx/test.sh: Run test/onnx in only shard 1 (#65722)
Summary: Fixes https://github.com/pytorch/pytorch/issues/65458 Pull Request resolved: https://github.com/pytorch/pytorch/pull/65722 Reviewed By: albanD Differential Revision: D31223236 Pulled By: janeyx99 fbshipit-source-id: 3b648cb940a95866f465b27b8bdc74b06d258140
This commit is contained in:
parent
87cd658c27
commit
50edc2679d
|
|
@ -49,10 +49,13 @@ if [[ $PARALLEL == 1 ]]; then
|
|||
args+=("3")
|
||||
fi
|
||||
|
||||
# These exclusions are for tests that take a long time / a lot of GPU
|
||||
# memory to run; they should be passing (and you will test them if you
|
||||
# run them locally
|
||||
pytest "${args[@]}" \
|
||||
# onnxruntime only support py3
|
||||
# "Python.h" not found in py2, needed by TorchScript custom op compilation.
|
||||
if [[ "$BUILD_ENVIRONMENT" == *ort_test1* ]]; then
|
||||
# These exclusions are for tests that take a long time / a lot of GPU
|
||||
# memory to run; they should be passing (and you will test them if you
|
||||
# run them locally
|
||||
pytest "${args[@]}" \
|
||||
--ignore "$top_dir/test/onnx/test_pytorch_onnx_onnxruntime.py" \
|
||||
--ignore "$top_dir/test/onnx/test_custom_ops.py" \
|
||||
--ignore "$top_dir/test/onnx/test_models_onnxruntime.py" \
|
||||
|
|
@ -63,9 +66,6 @@ pytest "${args[@]}" \
|
|||
--ignore "$top_dir/test/onnx/test_pytorch_onnx_caffe2_quantized.py" \
|
||||
"${test_paths[@]}"
|
||||
|
||||
# onnxruntime only support py3
|
||||
# "Python.h" not found in py2, needed by TorchScript custom op compilation.
|
||||
if [[ "$BUILD_ENVIRONMENT" == *ort_test1* ]]; then
|
||||
pytest "${args[@]}" \
|
||||
"$top_dir/test/onnx/test_pytorch_onnx_onnxruntime.py::TestONNXRuntime_opset7" \
|
||||
"$top_dir/test/onnx/test_pytorch_onnx_onnxruntime.py::TestONNXRuntime_opset8" \
|
||||
|
|
@ -77,6 +77,7 @@ if [[ "$BUILD_ENVIRONMENT" == *ort_test1* ]]; then
|
|||
"$top_dir/test/onnx/test_pytorch_onnx_caffe2_quantized.py" \
|
||||
"$top_dir/test/onnx/test_pytorch_onnx_shape_inference.py"
|
||||
fi
|
||||
|
||||
if [[ "$BUILD_ENVIRONMENT" == *ort_test2* ]]; then
|
||||
# Update the loop for new opsets
|
||||
for i in $(seq 10 14); do
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user