Skip to content

[IR] Use TVM_DEFINE_OBJECT_REF_METHODS macro for Op#12893

Merged
junrushao merged 1 commit intoapache:mainfrom
Lunderberg:op_node_tvm_macro
Sep 24, 2022
Merged

[IR] Use TVM_DEFINE_OBJECT_REF_METHODS macro for Op#12893
junrushao merged 1 commit intoapache:mainfrom
Lunderberg:op_node_tvm_macro

Conversation

@Lunderberg
Copy link
Contributor

Previously, the get() method wasn't defined, and returned a RelayExprNode instead of a Op::ContainerType*.

Previously, the `get()` method wasn't defined, and returned a
`RelayExprNode` instead of a `Op::ContainerType*`.
Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

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

LGTM! Not sure why we were not using that previously but definitely it's a positive improvement

@Lunderberg
Copy link
Contributor Author

If I had to guess, that would be based more on implementation timing than anything else. The OpNode was first defined in September 2018, but the macro wasn't defined until November 2019.

@junrushao
Copy link
Member

Ah ancient history!

@junrushao
Copy link
Member

It should be ready for merge :-)

@Lunderberg Lunderberg marked this pull request as ready for review September 24, 2022 19:38
@junrushao junrushao merged commit 71f25b3 into apache:main Sep 24, 2022
@Lunderberg Lunderberg deleted the op_node_tvm_macro branch September 26, 2022 16:08
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
Previously, the `get()` method wasn't defined, and returned a
`RelayExprNode` instead of a `Op::ContainerType*`.
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.

2 participants