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

Extend Where op to permit bfloat16 types #3738

Merged
merged 5 commits into from Sep 28, 2021
Merged

Conversation

gramalingam
Copy link
Contributor

Description
Update the Where op to allow bfloat type.

Motivation and Context
Looks like this op was overlooked when bfloat type was added.

Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
@gramalingam gramalingam requested review from a team as code owners September 24, 2021 18:02
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
@gramalingam gramalingam added the operator Issues related to ONNX operators label Sep 24, 2021
@gramalingam gramalingam changed the title Where op Extend Where op to permit bfloat16 types Sep 24, 2021
@askhade
Copy link
Contributor

askhade commented Sep 25, 2021

Is BFLoat16 support required for this OP? Meaning is any runtime blocked currently or is this simply to close the gap?

@gramalingam
Copy link
Contributor Author

gramalingam commented Sep 27, 2021

Is BFLoat16 support required for this OP? Meaning is any runtime blocked currently or is this simply to close the gap?

The function definition of DropoutGrad, for example, does not work for bfloat16, because the Where op does not support bfloat16. (See:https://github.com/microsoft/onnxruntime/blob/7d28b596f482f70052cc9e58374455bd5af7c92d/orttraining/orttraining/core/graph/training_op_defs.cc#L1702 ).

@askhade askhade added this to the 1.11 milestone Sep 28, 2021
@gramalingam gramalingam enabled auto-merge (squash) September 28, 2021 15:11
@gramalingam gramalingam merged commit 5282dd7 into onnx:master Sep 28, 2021
mhamilton723 pushed a commit to mhamilton723/onnx that referenced this pull request Oct 22, 2021
* Update Where op to allow bfloat16

Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>

* Update doc formatting

Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>

* Address flake8 warnings

Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>

Co-authored-by: Ashwini Khade <askhade@microsoft.com>
Signed-off-by: Mark <mhamilton723@gmail.com>
@gramalingam gramalingam deleted the where-op branch April 15, 2022 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
operator Issues related to ONNX operators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants