Skip to content

[Doc] Fixed Docstring usage example in tvm.ir.make_node - #16610

Merged
tqchen merged 2 commits into
apache:mainfrom
felix-ro:main
Feb 20, 2024
Merged

tqchen merged 2 commits into
apache:mainfrom
felix-ro:main

Conversation

@felix-ro

Copy link
Copy Markdown
Contributor

The provided usage example for tvm.ir.make_node has become outdated. Creating an IR node of type IntImm requires the field span.

Compare: make_node Unit Test

@quic-sanirudh quic-sanirudh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but is there a reason for the tvm.runtime.String addition. the FFI call should automatically handle if I'm not mistaken.

@felix-ro

Copy link
Copy Markdown
Contributor Author

LGTM, but is there a reason for the tvm.runtime.String addition. the FFI call should automatically handle if I'm not mistaken.

I just checked the FFI call, and it is handled there. I have updated the pr accordingly.

@tqchen
tqchen merged commit e5bfb02 into apache:main Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants