Skip to content

Fix cast propagation to not change casts from bool type.#8925

Merged
satyajandhyala merged 2 commits intomasterfrom
sajandhy/propagate_cast_ops_fix_bool
Sep 1, 2021
Merged

Fix cast propagation to not change casts from bool type.#8925
satyajandhyala merged 2 commits intomasterfrom
sajandhy/propagate_cast_ops_fix_bool

Conversation

@satyajandhyala
Copy link
Copy Markdown
Contributor

Description: Describe your changes.
Cast propagation transformation should not touch cast from bool -> float or bool->float16. Doing so would lead to type mismatch errors.
Motivation and Context

  • Why is this change required? What problem does it solve?
  • If it fixes an open issue, please link to the issue here.

@satyajandhyala satyajandhyala added component:ortmodule training issues related to ONNX Runtime training; typically submitted using template labels Sep 1, 2021
@satyajandhyala satyajandhyala changed the title [WIP]Fix cast propagation to not change casts from bool type. Fix cast propagation to not change casts from bool type. Sep 1, 2021
@satyajandhyala satyajandhyala marked this pull request as ready for review September 1, 2021 21:52
@satyajandhyala satyajandhyala requested a review from a team as a code owner September 1, 2021 21:52
@satyajandhyala satyajandhyala merged commit 9e661b6 into master Sep 1, 2021
@satyajandhyala satyajandhyala deleted the sajandhy/propagate_cast_ops_fix_bool branch September 1, 2021 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

training issues related to ONNX Runtime training; typically submitted using template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants