bfp/softmax: PR6 review hygiene batch (R-S6 pin test, SR edge vectors, shift-mode fail-fast, guard-message hints)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c
- Domain
- machine-learning, testing
Research direction
Start with docs/conventions/arithmetic-bfp.md §5.9 and locate bfpShiftRightRounded, bfpWireAnchor, and UnitTestBfpSoftmaxExp. Add the forward R-S6 pin and negative-floorQ SR vectors, make the rounding-mode fallback fail fast, and restore the got-NULL versus got-non-BFP guard hints; run the relevant BFP softmax tests to verify the pins and messages.
Written by the indexing model from the issue text.
Description
Follow-up from BFP epic PR6 (#439): the deferred-minor hygiene batch from the task/final reviews. Small, independent, one PR.
- R-S6 forward-hatch pin test: no test currently pins the forward escape hatch (
forwardMath = ARITH_FLOAT32pinned on BFP wires ⇒ fake-quant runs, no fail-fast) — the asymmetry twin (backward pin fail-fasts) IS pinned. Add the missing direction so a regression that extends the fail-fast to the forward is caught (docs/conventions/arithmetic-bfp.md §5.9 R-S6). - SR shift vectors at negative floorQ + large k:
bfpShiftRightRoundedSR mode is untested wherefloorQis negative withknear 31. AddSR(INT32_MIN, 31) == -1andSR(-2^29, 31) ∈ {-1, 0}(with the seeded-draw pin idiom from UnitTestBfpSoftmaxExp). -
bfpShiftRightRoundedswitch fallback: an out-of-rangebfpShiftRounding_tsilently returns 0 today — make it fail fast like every other dispatch default in the BFP code (explicit-switch convention, docs/conventions/arithmetic-bfp.md). - Guard-message hints: the
bfpWireAnchorunification (PR6 Task 1) dropped the pool anchors' richer got-NULL vs got-non-BFP message suffix (same exit behavior, less actionable message). Restore the distinction in the shared helper's message.
Part of the #410 epic hygiene trail.
🤖 Generated with Claude Code
- Dominant language
- C
- Stars
- 2
- Forks
- 3
- Avg merge
- 13h 6m
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from es-ude/OnDeviceTraining
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
es-ude/OnDeviceTraining#549 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
es-ude/OnDeviceTraining#547 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
es-ude/OnDeviceTraining#536 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
es-ude/OnDeviceTraining#478 ·
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
es-ude/OnDeviceTraining#459 ·
Maintainers usually reply within 1 day
All issues in es-ude/OnDeviceTraining
Similar issues
-
issue: bug report
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
BasedHardware/omi#26486 ·
Maintainers usually reply within 1 day
-
The LLVM object can build before collection_config.h is generatedPossibly taken @Vonng claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
aws/pgcollection#51 ·
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
yugabyte/yugabyte-db#39462 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libreswan/libreswan#3185 · 1 comment ·
Maintainers usually reply within 1 day