-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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][Dyn] Dynamic full operator #6260
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One Nitpick, need to fix the int64 test, otherwise looks great!
register_shape_func("zeros", False, full_shape_func) | ||
register_shape_func("zeros_like", False, elemwise_shape_func) | ||
register_shape_func("ones", True, no_data_full_shape_func) | ||
register_shape_func("ones", False, full_shape_func) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:/ Is this a rebase error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I was going through my code and I forgot to change this for the zeros and ones PR -- for the static shape ones and zeros, it is not data dependent since the shape of the input is in attributes, and uses the normal full_shape_func. It passes the tests for static ones and zeros..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps I should just remove the shape func registration for the static ops, it seems like this change didn't affect any behavior.
Thanks @electriclilies @mbrookhart |
* moved full from other branch * fixed some typos * fix lint * add final newline * fix int64 test
* moved full from other branch * fixed some typos * fix lint * add final newline * fix int64 test
* moved full from other branch * fixed some typos * fix lint * add final newline * fix int64 test
* moved full from other branch * fixed some typos * fix lint * add final newline * fix int64 test
* moved full from other branch * fixed some typos * fix lint * add final newline * fix int64 test
The dynamic version of the full operator
@mbrookhart @zhiics Let me know if you have any suggestions