Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][CI] Update ONNXRuntime version and Fixed bug in test_MaxPool2D #1193

Merged
merged 13 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 0 additions & 4 deletions tests/requirements.txt

This file was deleted.

15 changes: 8 additions & 7 deletions tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,12 @@

cases=$(find . -name "test*.py" | sort)
ignore="test_auto_scan_roi_align.py \ # need to be rewrite
test_expand_as.py \
test_split.py \
test_auto_scan_pool_adaptive_max_ops.py \
test_auto_scan_interpolate_v1_ops.py \
test_auto_scan_isx_ops.py \
test_auto_scan_masked_select.py \
test_auto_scan_pad2d.py \
test_auto_scan_roll.py \
test_auto_scan_set_value.py \
test_auto_scan_top_k.py \
test_auto_scan_unfold.py \
test_auto_scan_uniform_random_batch_size_like.py \
test_auto_scan_uniform_random.py \
Expand Down Expand Up @@ -64,10 +60,15 @@ ignore="test_auto_scan_roi_align.py \ # need to be rewrite
test_quantize_model_minist.py \
test_quantize_model_speedup.py"
bug=0

# Install Python Packet
export PY_CMD=$1
$PY_CMD -m pip install pytest
$PY_CMD -m pip uninstall onnxruntime
$PY_CMD -m pip install onnxruntime==1.11.1
$PY_CMD -m pip install pytest -i https://pypi.tuna.tsinghua.edu.cn/simple
$PY_CMD -m pip install onnx onnxruntime tqdm filelock -i https://pypi.tuna.tsinghua.edu.cn/simple
$PY_CMD -m pip install paddlepaddle==2.6.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
$PY_CMD -m pip install six hypothesis -i https://pypi.tuna.tsinghua.edu.cn/simple


export ENABLE_DEV=ON
echo "============ failed cases =============" >> result.txt
for file in ${cases}
Expand Down
301 changes: 0 additions & 301 deletions tests/test_auto_scan_interpolate_v1_ops.py

This file was deleted.

Empty file modified tests/test_auto_scan_isx_ops.py
100755 → 100644
Empty file.
30 changes: 8 additions & 22 deletions tests/test_auto_scan_squeeze2.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,15 @@ def sample_convert_config(self, draw):
st.integers(
min_value=4, max_value=10), min_size=3, max_size=5))

dtype = draw(
st.sampled_from(["bool", "float32", "float64", "int32", "int64"]))
axis = None
axis_dtype = draw(st.sampled_from(["None", "int", "list"]))
if axis_dtype == "list":
axis = draw(
st.integers(
min_value=-len(input_shape), max_value=len(input_shape) -
1))
if axis == 0:
axis = [0, -1]
else:
axis = [0, axis]
input_shape[axis[0]] = 1
input_shape[axis[1]] = 1
elif axis_dtype == "int":
axis = draw(
st.integers(
min_value=-len(input_shape), max_value=len(input_shape) -
1))
input_shape[axis] = 1
dtype = draw(st.sampled_from(["bool", "float32", "float64", "int32", "int64"]))

axis = draw(st.integers(min_value=-len(input_shape), max_value=len(input_shape) - 1))
if axis == 0:
axis = [0, -1]
else:
input_shape[0] = 1
axis = [0, axis]
input_shape[axis[0]] = 1
input_shape[axis[1]] = 1

tensor_attr = draw(st.booleans())

Expand Down
Loading