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

[ATTR] Introduce Integer container #1994

Merged
merged 1 commit into from
Oct 25, 2018
Merged

[ATTR] Introduce Integer container #1994

merged 1 commit into from
Oct 25, 2018

Conversation

tqchen
Copy link
Member

@tqchen tqchen commented Oct 25, 2018

Historically we use tvm::Expr to store integers and then use as_const_int to get its content. This PR introduces tvm::Integer, which is a more specialized container for IntImm, this could be useful to simplify code that uses tvm::Expr but actually want only to store integers

@tqchen
Copy link
Member Author

tqchen commented Oct 25, 2018

@cowanmeg @eqy @jroesch please review

@jroesch
Copy link
Member

jroesch commented Oct 25, 2018

Looks good to me, this is because the tvm::Expr classes don't have their own specialize NodeRef classes? (like I did in Relay)

@tqchen
Copy link
Member Author

tqchen commented Oct 25, 2018

Yes

@tqchen tqchen merged commit fc0149d into apache:master Oct 25, 2018
eqy pushed a commit to eqy/tvm that referenced this pull request Oct 29, 2018
FrozenGene pushed a commit to FrozenGene/tvm that referenced this pull request Dec 27, 2018
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
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