|
179 | 179 | in new `oxideon.splat` (`project_gaussians`, `rasterize`). |
180 | 180 | Tests: `test_speech_frontend.py`, `test_vision_toolkit.py`, |
181 | 181 | `test_nerf_splat.py`. |
| 182 | +- Classical science stack (additive-only, no behavior change to existing |
| 183 | + code; SciPy/PyTorch used as test oracles only, never imported at |
| 184 | + runtime): |
| 185 | + - `oxideon.numerical`: adaptive `quad`/`dblquad`, `gauss_legendre`/ |
| 186 | + `fixed_quad`, `Interp1D`, `CubicSpline`, `minimize_scalar`, |
| 187 | + `curve_fit`, `physical_constants` table. |
| 188 | + - `oxideon.stats`: `ttest_1samp`/`ttest_ind`/`ttest_rel`, `chisquare`/ |
| 189 | + `chi2_contingency`, `pearsonr`/`spearmanr`, `mannwhitneyu`, |
| 190 | + `kstest`, `skew`/`kurtosis`/`jarque_bera`, `ecdf`/`ECDF`, |
| 191 | + `p_adjust` (bonferroni/holm/bh). |
| 192 | + - `oxideon.physics`: `Wave2DEquation`/`Diffusion2DEquation` PDE |
| 193 | + solvers, `simulate_nbody` (+ energy/momentum, Kepler helpers), |
| 194 | + `hamiltonian_leapfrog`. |
| 195 | + Tests: `test_numerical.py` (26), `test_stats.py` (33), |
| 196 | + `test_physics.py` (12), several cross-checked against SciPy. |
| 197 | +- Docs: `docs/API_STABILITY.md` (tiered stability statement with |
| 198 | + per-module classification), `docs/SCIENCE_API.md` (science API guide |
| 199 | + with executed snippets). |
| 200 | +- Examples (all `main()`-runnable and gate-enforced via |
| 201 | + `test_new_example_scripts_execute_cleanly`): |
| 202 | + `science_numerical_methods.py`, `science_statistics.py`, |
| 203 | + `science_physics_sims.py`, `train_with_scheduler_and_checkpoint.py`. |
182 | 204 |
|
183 | 205 | ### Fixed |
| 206 | +- nn autograd restoration (Batch CV, `tests/test_bug_hunt_cv.py`, 21 |
| 207 | + regression tests, PyTorch oracle for values/gradients/validation): |
| 208 | + - `BatchNorm1d/2d/3d` and `GroupNorm` now propagate input gradients |
| 209 | + (previously silently None below any norm); `running_var` tracks the |
| 210 | + unbiased estimate (torch ddof parity). |
| 211 | + - `MultiMarginLoss`, `MultiLabelMarginLoss`, |
| 212 | + `MultiLabelSoftMarginLoss` rewritten with Tensor ops (grad flows; |
| 213 | + bad reductions and out-of-range labels are `ValueError`). |
| 214 | + - `Flatten` honors `start_dim`/`end_dim`; `CTCLoss` accepts |
| 215 | + torch-style lengths/targets (validated native subset, N*S `sum` |
| 216 | + rescaling); `PReLU` broadcasts per-channel weights with grad. |
| 217 | + - `adaptive_max_pool1d/2d/3d`, `lp_pool1d/2d` (also fixes signed |
| 218 | + odd-power values), `F.pad` (all modes), and |
| 219 | + `local_response_norm` (also fixes even sizes) keep autograd. |
| 220 | +- Collective/parallel-container hardening (Batch CU, |
| 221 | + `tests/test_bug_hunt_cu.py`, 18 regression tests, torch gloo oracle |
| 222 | + for op/dtype domains): |
| 223 | + - `all_reduce` list path and `DataParallel` numpy gather no longer |
| 224 | + force float32 (f64/i64 preserved); unknown collective ops raise |
| 225 | + `ValueError` instead of silently summing or shuffling garbage. |
| 226 | + - Bitwise `BAND`/`BOR`/`BXOR` reductions implemented in `all_reduce` |
| 227 | + and `ring_all_reduce`; bitwise-on-float and `AVG`-on-int raise |
| 228 | + `TypeError` (torch parity). |
| 229 | + - `init_process_group` rejects out-of-range ranks before mutating |
| 230 | + state; `scatter`/`reduce_scatter` require `world_size` entries; |
| 231 | + `reduce_scatter_tensor` chunks the input and reduces per rank |
| 232 | + (previously always crashed on legitimate shapes). |
| 233 | + - `DataParallel` gathers tuple/list outputs elementwise (torch |
| 234 | + parity); `PipelineParallel` forwards kwargs on the microbatched |
| 235 | + path and rejects batch-0 input with `ValueError`. |
| 236 | + - `KVMemoryBank.read` on empty memory returns grad-connected zeros |
| 237 | + so `backward()` works; `all_gather` accepts array-like lists. |
| 238 | +- Optimizer/scheduler/serialization hardening (Batch CT, |
| 239 | + `tests/test_bug_hunt_ct.py`, 11 regression tests, torch-oracle |
| 240 | + verified where applicable): |
| 241 | + - Optimizer: bare-Tensor/empty/set/non-Tensor params rejected |
| 242 | + (`TypeError`/`ValueError`, torch parity); `load_state_dict` maps |
| 243 | + hyper-parameters and per-param state onto the live params by order |
| 244 | + instead of adopting checkpoint objects; `state_dict` deep-copies. |
| 245 | + - LBFGS honors `max_iter` (inner loop) and `tolerance_change` |
| 246 | + (early stop); non-None `line_search_fn` raises `ValueError`. |
| 247 | + - NAdam uses the scheduled momentum-decay correction (mirrors the |
| 248 | + in-repo Rust schedule) instead of a constant-beta1 term. |
| 249 | + - Schedulers read/write per-param-group LRs (previously a single |
| 250 | + `.lr`/1e-3 base that never moved native optimizers); `LambdaLR` |
| 251 | + validates lambda-list length; StepLR/MultiStepLR preserve external |
| 252 | + LR edits on non-decay steps. |
| 253 | + - `serialization.load` no longer masks strict state-dict mismatches |
| 254 | + as unpickle errors (parse-then-apply); loading a non-dict object |
| 255 | + into a model raises `TypeError` instead of silently returning the |
| 256 | + untouched model. |
184 | 257 | - Index-fill audit (engine + binding + shim unwiring, 1 new `ops::tests`, |
185 | 258 | 2 new pytest in `tests/test_masked.py`, all torch-verified): new engine |
186 | 259 | `index_fill` (axis mask + `where_cond` composition, so gradients flow |
|
0 commit comments