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] More type alpha equality test coverage #1823

Merged
merged 9 commits into from
Oct 6, 2018

Conversation

slyubomirsky
Copy link
Contributor

@slyubomirsky slyubomirsky commented Oct 5, 2018

Alpha equality is deeply relied on by much of Relay, yet we have very little test coverage for it (mostly lost across different rewrites). I am going to add tests for more cases and in the process try to fix any missing functionality in alpha_eq itself. Please review my tests, as well as changes to alpha_eq, or suggest ways to improve or better organize the tests.

Still to do:

  • Have tests in greater depth for type relations and attrs

t2 = relay.TensorType((1, 2, 3), "float32")
t3 = relay.TensorType((1, 2, 3, 4), "float32")

tr1 = relay.TypeRelation(None, tvm.convert([t1, t2]), 1, None)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would really appreciate pointers on how to specify a type relation function or attributes node from within Python (can't find any examples), if possible

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Excellent, thank you. I will make the relation examples less trivial then.

@slyubomirsky slyubomirsky changed the title [Relay][WIP] More alpha equality test coverage [Relay] More type alpha equality test coverage Oct 5, 2018
@slyubomirsky
Copy link
Contributor Author

Given the operator push, I'll leave expr alpha equality tests for another PR

@tqchen tqchen merged commit 3d62cf7 into apache:master Oct 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