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 2025/05/04 17:04:35 UTC
(tvm) 04/08: Passt through tests/ir
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch refactor-s3
in repository https://gitbox.apache.org/repos/asf/tvm.git
commit 977829a702ad8a8e59e8c0b6340ca3d79cb76304
Author: tqchen <ti...@gmail.com>
AuthorDate: Sun May 4 11:51:43 2025 -0400
Passt through tests/ir
---
tests/python/ffi/test_string.py | 3 ++-
tests/python/ir/test_ir_container.py | 8 +-------
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/tests/python/ffi/test_string.py b/tests/python/ffi/test_string.py
index 5d5a4c5d0b..67c82d52f7 100644
--- a/tests/python/ffi/test_string.py
+++ b/tests/python/ffi/test_string.py
@@ -1,5 +1,6 @@
from tvm import ffi as tvm_ffi
+
def test_string():
fecho = tvm_ffi.get_global_func("testing.echo")
s = tvm_ffi.String("hello")
@@ -25,4 +26,4 @@ def test_bytes():
b4 = tvm_ffi.convert(bytearray(b"hello"))
assert isinstance(b4, tvm_ffi.Bytes)
- assert isinstance(b4, bytes)
\ No newline at end of file
+ assert isinstance(b4, bytes)
diff --git a/tests/python/ir/test_ir_container.py b/tests/python/ir/test_ir_container.py
index 04d12482d9..c90df0a223 100644
--- a/tests/python/ir/test_ir_container.py
+++ b/tests/python/ir/test_ir_container.py
@@ -43,12 +43,6 @@ def test_dir_array():
assert dir(a)
-def test_getattr_array():
- a = tvm.runtime.convert([1, 2, 3])
- assert getattr(a, "type_key") == "object.Array"
- assert not hasattr(a, "test_key")
-
-
def test_map():
a = te.var("a")
b = te.var("b")
@@ -96,7 +90,7 @@ def test_getattr_map():
a = te.var("a")
b = te.var("b")
amap = tvm.runtime.convert({a: 2, b: 3})
- assert isinstance(amap, tvm.runtime.Map)
+ assert isinstance(amap, tvm.ffi.Map)
def test_in_container():