From 4581fae6d58b30f99cb9db1868345ea2c3708b3f Mon Sep 17 00:00:00 2001 From: Felix Date: Mon, 19 Feb 2024 16:47:48 +0000 Subject: [PATCH 1/2] Fixed outdated usage example in attrs.py make_node docstring --- python/tvm/ir/attrs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tvm/ir/attrs.py b/python/tvm/ir/attrs.py index 170f64ebae5b..895bd6ef69d3 100644 --- a/python/tvm/ir/attrs.py +++ b/python/tvm/ir/attrs.py @@ -153,7 +153,7 @@ def make_node(type_key, **kwargs): .. code-block:: python - x = tvm.ir.make_node("IntImm", dtype="int32", value=10) + x = tvm.ir.make_node("IntImm", dtype=tvm.runtime.String("int32"), value=10, span=None) assert isinstance(x, tvm.tir.IntImm) assert x.value == 10 """ From 10f322d6c7966f1f16d09a6d162344770a8f0dcd Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 20 Feb 2024 08:56:05 +0000 Subject: [PATCH 2/2] removed obsolete tvm.runtime.String from usage example --- python/tvm/ir/attrs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tvm/ir/attrs.py b/python/tvm/ir/attrs.py index 895bd6ef69d3..05fe684635dd 100644 --- a/python/tvm/ir/attrs.py +++ b/python/tvm/ir/attrs.py @@ -153,7 +153,7 @@ def make_node(type_key, **kwargs): .. code-block:: python - x = tvm.ir.make_node("IntImm", dtype=tvm.runtime.String("int32"), value=10, span=None) + x = tvm.ir.make_node("IntImm", dtype="int32", value=10, span=None) assert isinstance(x, tvm.tir.IntImm) assert x.value == 10 """