Commit 8124071
Fix ReduceSumSquare: axes as input per ONNX spec (#76)
Per ONNX opset 18+, `ReduceSumSquare` takes `axes` as an optional
**input tensor**, not an attribute.
## Problem
The current code passes `axes=[-1]` as a keyword argument, which
onnxscript interprets as an **attribute**. This produces an invalid ONNX
graph per the spec.
## Fix
Change `axes=[-1]` (attribute) → `[-1]` (positional input tensor),
matching the pattern used by `ReduceSum` and `ReduceMean` throughout the
codebase.
## Files changed
| File | Sites | Context |
|------|-------|---------|
| `src/mobius/components/_gated_deltanet.py` | 2 | L2 normalization of Q
and K in GatedDeltaNet attention |
| `src/mobius/models/qwen3_tts_tokenizer.py` | 2 | Nearest-neighbor
codebook lookup (distance computation) |
## Testing
2219 passed, 29 skipped. Lint clean.
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c1cdd3b commit 8124071
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| |||
0 commit comments