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][Frontend][ONNX] Broadcast condition, x, and y for Where op #4774

Merged
merged 3 commits into from
Jan 27, 2020

Conversation

soiferj
Copy link
Contributor

@soiferj soiferj commented Jan 24, 2020

ONNX's Where operator can broadcast the condition, x, and y tensors. The current implementation will only broadcast x and y.

This change will try to find the best shape to broadcast to (longest and doesn't have 1 as a dimension), and will broadcast all tensors to that shape.

@jwfromm would you be able to take a look?

Copy link
Contributor

@jwfromm jwfromm left a comment

Choose a reason for hiding this comment

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

Makes sense, everything LGTM.

@jroesch jroesch merged commit de919cb into apache:master Jan 27, 2020
@soiferj soiferj deleted the onnx_broadcast branch January 27, 2020 23:45
alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 26, 2020
…pache#4774)

* ONNX frontend broadcast condition

* fix

* fix style

Co-authored-by: Jon Soifer <jonso@microsoft.com>
alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 28, 2020
…pache#4774)

* ONNX frontend broadcast condition

* fix

* fix style

Co-authored-by: Jon Soifer <jonso@microsoft.com>
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2020
…pache#4774)

* ONNX frontend broadcast condition

* fix

* fix style

Co-authored-by: Jon Soifer <jonso@microsoft.com>
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.

4 participants