Commit 2979b8a
Remove redundant padding-position check in anchor mask creation (#522)
<!-- markdownlint-disable -->
## Purpose
The hard error when anchor_positions land on padding locations is
redundant: base_prefix_mod already guards against this with the q_doc !=
-1 check, and invalid anchors have their loss zeroed out via
anchor_valid. The error breaks valid edge cases like empty batches where
select_anchors returns all-zero positions.
## Description
Keeping track of this for later.
## Related Issue
## Tests
I have filled in:
- [ ] The purpose of the PR, such as "Fix some issue (link existing
issues this PR will resolve)".
- [ ] The test plan/results, such as providing test command and pasting
the results.
- [ ] (Optional) The necessary documentation update.
- [ ] I (a human) have written or reviewed the code in this pr to the
best of my ability.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 46cdb3b commit 2979b8a
1 file changed
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 77 | | |
85 | 78 | | |
86 | 79 | | |
| |||
0 commit comments