Skip to content

Commit

Permalink
[Doc] Fixed Docstring usage example in tvm.ir.make_node (#16610)
Browse files Browse the repository at this point in the history
* Fixed outdated usage example in attrs.py make_node docstring

* removed obsolete tvm.runtime.String from usage example
  • Loading branch information
felix-ro authored Feb 20, 2024
1 parent b218557 commit e5bfb02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/ir/attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down

0 comments on commit e5bfb02

Please sign in to comment.