You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix allow_missing_label_with_zero_weight for NE metric (#3465)
Summary:
Pull Request resolved: #3465
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.
Reviewed By: iamzainhuda
Differential Revision: D84975421
fbshipit-source-id: aaf217d497a2b0857f4ea438f2e3f37abbe2b4c9
0 commit comments