You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2023/03/30 14:20:05 UTC
[tvm] branch main updated: [Typo] Fix name of iter var type 4 (#14436)
This is an automated email from the ASF dual-hosted git repository.
tqchen 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 776cf5b3b1 [Typo] Fix name of iter var type 4 (#14436)
776cf5b3b1 is described below
commit 776cf5b3b1f27f3013f95bce643fa83331474a52
Author: wrongtest <wr...@gmail.com>
AuthorDate: Thu Mar 30 22:19:57 2023 +0800
[Typo] Fix name of iter var type 4 (#14436)
fix name of iter var type 4
---
python/tvm/tir/expr.py | 2 +-
tests/python/unittest/test_tvmscript_ir_builder_tir.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/tvm/tir/expr.py b/python/tvm/tir/expr.py
index 52153fd41d..f93e39ee0f 100644
--- a/python/tvm/tir/expr.py
+++ b/python/tvm/tir/expr.py
@@ -417,7 +417,7 @@ class IterVar(Object, ExprOp, Scriptable):
ThreadIndex = 1
CommReduce = 2
Ordered = 3
- DimInfo = 4
+ Opaque = 4
Unrolled = 5
Vectorized = 6
Parallelized = 7
diff --git a/tests/python/unittest/test_tvmscript_ir_builder_tir.py b/tests/python/unittest/test_tvmscript_ir_builder_tir.py
index 5599d2f7c6..70180ecbb0 100644
--- a/tests/python/unittest/test_tvmscript_ir_builder_tir.py
+++ b/tests/python/unittest/test_tvmscript_ir_builder_tir.py
@@ -193,7 +193,7 @@ def test_ir_builder_tir_axis():
tir.IterVar((0, 8), tir.Var("", "int32"), iter_type=tir.IterVar.DataPar),
tir.IterVar((0, 16), tir.Var("", "int32"), iter_type=tir.IterVar.CommReduce),
tir.IterVar((0, 32), tir.Var("", "int32"), iter_type=tir.IterVar.Ordered),
- tir.IterVar((0, 64), tir.Var("", "int32"), iter_type=tir.IterVar.DimInfo),
+ tir.IterVar((0, 64), tir.Var("", "int32"), iter_type=tir.IterVar.Opaque),
],
reads=[],
writes=[],