Skip to content

Conversation

yingufan
Copy link
Contributor

Summary:
This fixes two issues when enabling allow_missing_label_with_zero_weight for NE metric:

  1. The returned tensor should have the same shape even if some weights are zero, to prevent errors in downstream processing.
  2. Correct NE should be returned for the tasks with non-zero weights.

Differential Revision: D84975421

Summary:
This fixes two issues when enabling allow_missing_label_with_zero_weight for NE metric:
1. The returned tensor should have the same shape even if some weights are zero, to prevent errors in downstream processing.
1. Correct NE should be returned for the tasks with non-zero weights.

Differential Revision: D84975421
Copy link
Contributor

meta-codesync bot commented Oct 18, 2025

@yingufan has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84975421.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 18, 2025
@meta-codesync meta-codesync bot closed this in 80dbb88 Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant