Commit 9e5a0cc
committed
fix(ci): keep CategoricalRelaxation forward bit-identical for the typical positive case
The previous defensive ``x.clamp(min=1e-8)`` before normalisation slightly
shifted the simplex output even when ``x`` was already safe, which was
enough to break ``test_smoke.py::test_coloring_cpu`` (K=2, 200 epochs) on
CI across Python 3.10 / 3.11 / 3.12. Guard *only* the denominator so the
typical case is identical to the historical implementation, and the
NaN/Inf failure mode (``x.sum`` ~ 0) is still defended against.
Also bump deprecated GitHub Actions to silence the Node.js 20 deprecation
warning in CI: ``actions/checkout@v4 -> v5``,
``astral-sh/setup-uv@v3 -> v8``.
Made-with: Cursor1 parent 629ce97 commit 9e5a0cc
2 files changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
0 commit comments