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 2024/02/20 22:39:13 UTC

(tvm) branch main updated: [Doc] Fixed Docstring usage example in `tvm.ir.make_node` (#16610)

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 e5bfb028b9 [Doc] Fixed Docstring usage example in `tvm.ir.make_node` (#16610)
e5bfb028b9 is described below

commit e5bfb028b9937f8c35a7a98403b900d3b4eab9b9
Author: Felix <83...@users.noreply.github.com>
AuthorDate: Tue Feb 20 22:39:07 2024 +0000

    [Doc] Fixed Docstring usage example in `tvm.ir.make_node` (#16610)
    
    * Fixed outdated usage example in attrs.py make_node docstring
    
    * 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 170f64ebae..05fe684635 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="int32", value=10, span=None)
        assert isinstance(x, tvm.tir.IntImm)
        assert x.value == 10
     """