Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PYTHON] Enable constructors in Node #1647

Merged
merged 2 commits into from
Aug 23, 2018
Merged

[PYTHON] Enable constructors in Node #1647

merged 2 commits into from
Aug 23, 2018

Conversation

tqchen
Copy link
Member

@tqchen tqchen commented Aug 23, 2018

Motivation, previously most Node's __init__ takes in handle, and we need to use tvm.make.IntImm to create the Node. This can cause the developer's confusion when they try to call the constructor and encounters error.

This PR enables the constructor in node as well, so we can also directly construct a Node by calling its normal constructor

@tqchen
Copy link
Member Author

tqchen commented Aug 23, 2018

@jroesch please review

@jroesch
Copy link
Member

jroesch commented Aug 23, 2018

Seems good to me, the changes mostly look mechanical in nature.

@tqchen tqchen merged commit 6eecec9 into apache:master Aug 23, 2018
ZhennanQin pushed a commit to ZhennanQin/tvm that referenced this pull request Sep 6, 2018
FrozenGene pushed a commit to FrozenGene/tvm that referenced this pull request Dec 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants