Skip to content

feat: convert TFLite int8 CUMSUM at any input zero point - #126

Merged
asteinh merged 1 commit into
developfrom
feat/tflite-cumsum-zero-point
Oct 4, 2026
Merged

asteinh merged 1 commit into
developfrom
feat/tflite-cumsum-zero-point

Conversation

@asteinh

@asteinh asteinh commented Oct 4, 2026

Copy link
Copy Markdown
Member

TFLite's int8 CUMSUM seeds its sum with the scaled input zero point, while ONNX's CumSum sums dequantized values, so a non-zero zero point was refused. The frontend now emits the compiler's own CumSum for int8, which normalizes to CumSum with TFLite's semantics. The runtime already computes those semantics, so the plan format and runtime are unchanged. ONNX's own CumSum keeps its zero-point-0 rule, now covered by a test.

New int8 fixtures at input zero point -128, plain and exclusive-reverse, bit-exact against TFLite Micro.

@asteinh
asteinh merged commit 5d2ddbb into develop Oct 4, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant