fix bug for adaptive_log_softmax_with_loss#73554
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
Codecov Report❌ Patch coverage is Please upload reports for the commit 92e0917 to get more accurate results.
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #73554 +/- ##
==========================================
Coverage ? 0.00%
==========================================
Files ? 1
Lines ? 2
Branches ? 0
==========================================
Hits ? 0
Misses ? 2
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR Category
User Experience
PR Types
Bug fixes
Description
原本的代码

row_indices = label_mask.nonzero().squeeze()
可能产生标量的结果导致接下来unsqueeze(1)失败
进行更改 使得row_indices不再为标量