Commit 20da10f
feat(rp-27 part 2): mirror RawAudio orig_sample_rate dispatch into GPU path
The CPU detect_audio path got the 2-input ONNX dispatch in commit 5ea8641
(sparrow-engine v0.1.16). The GPU mirror in sparrow-engine-gpu was missed —
spe-gpu loading orca-ecotype-dclde2026-v1 (the first model that opts into
pass_orig_sample_rate=true) failed at both load-time probe and per-batch
session.run with 'Missing Input: orig_sample_rate'.
Wires the manifest flag through the GPU RawAudioModel:
- RawAudio variant pattern: extract pass_orig_sample_rate alongside
sample_rate + window_samples
- New struct field on RawAudioModel
- load_from_manifest probe: when flag is true, build a [1] int64 tensor
carrying target_sample_rate (no-op for fill_highfreq) and run via the
named Vec<(Cow<str>, SessionInputValue)> form
- detect_inner per-batch: same pattern, but populates with the actual
audio_samples.orig_sample_rate from the engine resampler
End-to-end verified on RTX 6000 Ada with all 10 hydrophone WAV fixtures
through spe-gpu detect-audio --visualize. Per-window calibrated softmax
output matches the CPU smoke from earlier in the session bit-identically
on the 24 kHz (no-resample) fixture; under-sampled fixtures differ within
the same parity envelope as the CPU path (median top-1 delta 0.018).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8017a89 commit 20da10f
1 file changed
Lines changed: 47 additions & 8 deletions
Lines changed: 47 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
105 | | - | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
109 | | - | |
| 112 | + | |
| 113 | + | |
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
| |||
210 | 214 | | |
211 | 215 | | |
212 | 216 | | |
213 | | - | |
214 | | - | |
215 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
216 | 236 | | |
217 | 237 | | |
218 | 238 | | |
| |||
281 | 301 | | |
282 | 302 | | |
283 | 303 | | |
| 304 | + | |
284 | 305 | | |
285 | 306 | | |
286 | 307 | | |
| |||
395 | 416 | | |
396 | 417 | | |
397 | 418 | | |
398 | | - | |
399 | | - | |
400 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
401 | 440 | | |
402 | 441 | | |
403 | 442 | | |
| |||
0 commit comments