This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch unity-staging
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/unity-staging by this push:
     new d4f60655c5 [Unity] Mark tests that need python3.8 compact.
d4f60655c5 is described below

commit d4f60655c573749a0b3a53e7a063548189bb72c2
Author: tqchen <[email protected]>
AuthorDate: Mon Mar 13 09:45:31 2023 -0400

    [Unity] Mark tests that need python3.8 compact.
---
 tests/python/relax/test_tvmscript_parser.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/python/relax/test_tvmscript_parser.py 
b/tests/python/relax/test_tvmscript_parser.py
index 1d3968fd62..3d1c46a7a6 100644
--- a/tests/python/relax/test_tvmscript_parser.py
+++ b/tests/python/relax/test_tvmscript_parser.py
@@ -14,7 +14,7 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-
+import sys
 from typing import Optional, Union
 
 import pytest
@@ -460,6 +460,7 @@ def test_tuple_return_2():
     _check(foo, bb.get()["foo"])
 
 
[email protected](sys.version_info < (3, 8), reason="requires python3.8 or 
higher")
 def test_tuple_binding():
     @R.function
     def foo(x: R.Tensor("float32", ndim=2)):
@@ -481,6 +482,7 @@ def test_tuple_binding():
     _check(foo, bb.get()["foo"])
 
 
[email protected](sys.version_info < (3, 8), reason="requires python3.8 or 
higher")
 def test_tuple_get_item():
     @R.function
     def foo(x: R.Tensor, y: R.Tensor):
@@ -1112,6 +1114,7 @@ def test_symbolic_shape_computing():
             return z
 
 
[email protected](sys.version_info < (3, 8), reason="requires python3.8 or 
higher")
 def test_arith_operators():
     @R.function
     def foo(x: R.Tensor(("m", "n"), "float32"), y: R.Tensor(("m", "n"), 
"float32")):
@@ -1121,7 +1124,7 @@ def test_arith_operators():
         a3 = x * y
         a4 = x / y
         a5 = x // y
-        a6 = x**y
+        a6 = x ** y
 
         c0 = x > y
         c1 = x < y
@@ -1132,7 +1135,7 @@ def test_arith_operators():
         t0 = tuple_expr[0]
         t1 = tuple_expr[1]
         t2 = tuple_expr[0][0]  # <= Will normalize to two bindings
-        return a0, a1, a2, a3, a4, a5, a6, c0, c1, c2, c3, t0, t1, t2
+        return (a0, a1, a2, a3, a4, a5, a6, c0, c1, c2, c3, t0, t1, t2)
 
     m = tir.Var("m", "int64")
     n = tir.Var("n", "int64")

Reply via email to