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

[Relay][Ops] Register all operators' attributes in Python #3175

Merged
merged 1 commit into from
May 11, 2019

Conversation

slyubomirsky
Copy link
Contributor

When constructing Relay operator calls in Python, unless the attributes node for that operator is specifically registered, the attributes nodes are treated as tvm.NodeBase and thus it is impossible to list and access the keys for those attributes. That makes it incredibly difficult to programmatically manipulate operator calls in Python.

It may also be wise to update the operator registration instructions to also encourage registering the attributes node for that operator, as in here.

@slyubomirsky
Copy link
Contributor Author

Please review if you can @wweic (suggested I make this a separate PR), @merrymercy (previously modified the file), @jroesch

Copy link
Contributor

@wweic wweic left a comment

Choose a reason for hiding this comment

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

lgtm. thanks!

@tqchen tqchen merged commit fa38ef0 into apache:master May 11, 2019
@tqchen
Copy link
Member

tqchen commented May 11, 2019

Thanks, @slyubomirsky @wweic, this PR is now merged

wweic pushed a commit to wweic/tvm that referenced this pull request May 13, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request May 13, 2019
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.

3 participants