Skip to content

Remove aten::binary_cross_entropy_with_logits from ATen Fallback#12301

Merged
Lafi7e merged 1 commit into
masterfrom
weicwang/aten_bce
Jul 25, 2022
Merged

Remove aten::binary_cross_entropy_with_logits from ATen Fallback#12301
Lafi7e merged 1 commit into
masterfrom
weicwang/aten_bce

Conversation

@Lafi7e

@Lafi7e Lafi7e commented Jul 25, 2022

Copy link
Copy Markdown
Contributor

PyTorch removed "binary_cross_entropy_with_logits_backward" from its native function list so that we cannot fallback aten::binary_cross_entropy_with_logits to ATen since we cannot build the gradient graph using that function easily. We have exporter logic for "binary_cross_entropy_with_logits ", when swtiched back to use the original exporter logic, it still works well for both forward and backward.

The ATen fallback for this function is from this PR: #9670. At that time we saw customer issue when using original exporter logic. Not sure if this issue is still valid for the customer, if yes, we need to revisit this, fix it, either by changing model script, or exporter logic. @zhijxu-MS

@baijumeswani baijumeswani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.

@Lafi7e Lafi7e merged commit c40f73a into master Jul 25, 2022
@Lafi7e Lafi7e deleted the weicwang/aten_bce branch July 25, 2022 23:29
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.

2 participants