Commit ab49a48
authored
Fix incorrect condition comment in log_target calculation (#633)
## Summary
This PR fixes an incorrect comment in the `log_target` condition
calculation. The original comments had the conditions reversed of
LigerKLDivLossFunction.
- When `log_target=False`, the actual computation is `target *
(target.log() - input)`
- When `log_target=True`, the actual computation is `target.exp() *
(target - input)`
This change corrects the comments to accurately reflect the
implementation (documentation-only change).
## Details
The comment correction improves code clarity and prevents potential
confusion for developers. No functional changes are made.
## Testing Done
**Not required** - This is a documentation-only change that:
1. Doesn't modify any executable code
2. Doesn't affect any existing functionality
3. Only fixes inaccurate comments
<!-- Removed testing checklist as it's not applicable for doc changes
-->1 parent 87187b1 commit ab49a48
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | 188 | | |
| 189 | + | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
0 commit comments