This is an automated email from the ASF dual-hosted git repository.
mshr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 9aa1dca457 [Test] Use roi_list variable instead of hardcoded values in
ROI tensor creation (#18145)
9aa1dca457 is described below
commit 9aa1dca457bb826bc385ba22ed9d9219c5ad841d
Author: ConvolutedDog <[email protected]>
AuthorDate: Mon Jul 14 18:37:47 2025 +0800
[Test] Use roi_list variable instead of hardcoded values in ROI tensor
creation (#18145)
Update test_frontend_onnx.py
---
tests/python/relax/test_frontend_onnx.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/tests/python/relax/test_frontend_onnx.py
b/tests/python/relax/test_frontend_onnx.py
index d93d662e36..7a0a7d7bc9 100644
--- a/tests/python/relax/test_frontend_onnx.py
+++ b/tests/python/relax/test_frontend_onnx.py
@@ -2442,11 +2442,7 @@ def test_resize(with_roi, roi_list):
],
initializer=[
helper.make_tensor("scales", TensorProto.FLOAT, [4], [1.0, 1.0,
2.0, 2.0]),
- *(
- [helper.make_tensor("roi", TensorProto.FLOAT, [4], [0.0, 0.0,
0.0, 0.0])]
- if with_roi
- else []
- ),
+ *([helper.make_tensor("roi", TensorProto.FLOAT, [4], roi_list)] if
with_roi else []),
],
outputs=[
helper.make_tensor_value_info("Y", TensorProto.FLOAT, [1, 3, 64,
64]),