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][Dyn] Dynamic full operator #6260

Merged
merged 5 commits into from
Aug 13, 2020
Merged

Conversation

electriclilies
Copy link
Contributor

The dynamic version of the full operator

@mbrookhart @zhiics Let me know if you have any suggestions

Copy link
Contributor

@mbrookhart mbrookhart left a 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!

Comment on lines +204 to +206
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)
Copy link
Contributor

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?

Copy link
Contributor Author

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..

Copy link
Contributor Author

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.

@zhiics zhiics merged commit 16b2a4b into apache:master Aug 13, 2020
@zhiics
Copy link
Member

zhiics commented Aug 13, 2020

Thanks @electriclilies @mbrookhart

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
* moved full from other branch

* fixed some typos

* fix lint

* add final newline

* fix int64 test
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
* moved full from other branch

* fixed some typos

* fix lint

* add final newline

* fix int64 test
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
* moved full from other branch

* fixed some typos

* fix lint

* add final newline

* fix int64 test
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Sep 2, 2020
* moved full from other branch

* fixed some typos

* fix lint

* add final newline

* fix int64 test
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 3, 2020
* moved full from other branch

* fixed some typos

* fix lint

* add final newline

* fix int64 test
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.

3 participants