Commit e583d7b
fix(ocr): make recognition deterministic (single-threaded ORT)
ORT's multi-threaded float-reduction order varies across runs, flipping the CTC
argmax on low-confidence characters. This was latent until the sharper
supersampled render pushed a noisy fax (sample_with_rotation_mismatch) to
borderline confidence, making its snapshot non-deterministic (pdf_conformance
75/76 drift). Recognition inputs are tiny per-line crops, so single-threaded ORT
costs negligible throughput and restores determinism — the snapshot baseline is
unchanged (the committed output already matched the deterministic one).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 5521e75 commit e583d7b
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | | - | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
0 commit comments