You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by an...@apache.org on 2022/09/22 17:16:09 UTC

[tvm] branch v0.10.0 updated: [Hybrid] Fix sys version check (#12837)

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

andrewzhaoluo pushed a commit to branch v0.10.0
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/v0.10.0 by this push:
     new 5328c6bf77 [Hybrid] Fix sys version check (#12837)
5328c6bf77 is described below

commit 5328c6bf77840ea058f223372b473f5005051306
Author: Wuwei Lin <wu...@apache.org>
AuthorDate: Wed Sep 21 15:14:28 2022 -0700

    [Hybrid] Fix sys version check (#12837)
    
    This is a follow-up to #12769 The check for sys version of python 3.9 is not correct.
    Fixed #12814
---
 python/tvm/te/hybrid/parser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/tvm/te/hybrid/parser.py b/python/tvm/te/hybrid/parser.py
index 4956aaf0be..ec103ac188 100644
--- a/python/tvm/te/hybrid/parser.py
+++ b/python/tvm/te/hybrid/parser.py
@@ -374,7 +374,7 @@ class HybridParser(ast.NodeVisitor):
 
     def visit_Subscript(self, node):
         args = self.visit(node.slice)
-        if sys.version_info > (3, 8):
+        if sys.version_info >= (3, 9):
             if not isinstance(node.slice, ast.Tuple):
                 args = [args]