open-standards/wai/wai-rs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science 22212badf2 wai-rs: hyper_scale_decoder — floor (>>) not truncation; byte-exact vs the REFERENCE decoder
The fully-integer hyper_scale_decoder does its per-channel ÷2^n as an ARITHMETIC
RIGHT SHIFT (floor), matching the real reference decoder. The exported ONNX
represents it as integer `Div` (truncation toward zero), which differs from `>>` on
negatives by 1 LSB — a ~1-LSB-wrong export. decode_hyper_scale used `/` (matching the
ONNX); switch it to `>>` (matching the reference).

Impact, on the real test256.bin hyper-latent (z[1,160,4,4] → i_s[1,160,16,16]): the
old truncation matched only 30765/40960 of the reference i_s (the rest off by exactly
+1, at the negative-remainder positions surfaced by the final abs); with `>>` it is
40960/40960 BYTE-EXACT vs the reference decoder.

Retargets tests/jpegai_hyperscale_calibration.rs from the (truncating) onnx.reference
golden to the real reference-decoder i_s — the correct target — validated byte-exact
on real data. Structural lib test unaffected (shape/range/determinism).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-09 07:01:28 -04:00
..
examples wai: learned integer-exact Gaussian-splat attribute codec (wai.splat.int_codec) 2026-06-28 09:14:46 -04:00
include wai: ScoreReceipt — the music class gets the same measured-energy receipt 2026-06-14 11:30:53 -04:00
src wai-rs: hyper_scale_decoder — floor (>>) not truncation; byte-exact vs the REFERENCE decoder 2026-07-09 07:01:28 -04:00
tests wai-rs: hyper_scale_decoder — floor (>>) not truncation; byte-exact vs the REFERENCE decoder 2026-07-09 07:01:28 -04:00
build.rs wai: interactive + temporal cargo classes, provenance, telepresence 2026-06-13 23:16:42 -04:00
Cargo.lock wai: interactive + temporal cargo classes, provenance, telepresence 2026-06-13 23:16:42 -04:00
Cargo.toml wai: learned integer-exact Gaussian-splat attribute codec (wai.splat.int_codec) 2026-06-28 09:14:46 -04:00
cbindgen.toml Add WAI — Web AI Media Transport & Execution standard 2026-05-24 13:36:51 -04:00