tensorflow / tensorflow/tflite-micro
TFLM output does not match TfLite output for Conv OP
Open
@ddavis-2015 is already working on this.
Since Jul 8, 2025.
- Dominant language
- C++
- Stars
- 3.1k
- Forks
- 1.1k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 43
Description
First found during manual testing and confirmed with layer_by_layer_debugger script.
Output:
AssertionError:
Arrays are not equal
TFLM output does not match TfLite output.
Subgraph number is 0
Layer number is 2
The Tensor Index where this output does not match is 46
Mismatched elements: 80 / 51200 (0.156%)
Max absolute difference among violations: 1
Max relative difference among violations: 1.
ACTUAL: array([[[[ 7, 14, 6, 17, 4, -5, -20, 8],
[ 1, -34, 15, -12, 15, 15, 7, 6],
[ 2, 15, -5, 47, 6, -6, -3, 0],...
DESIRED: array([[[[ 7, 14, 6, 17, 4, -5, -20, 8],
[ 1, -34, 15, -12, 15, 15, 7, 6],
[ 2, 15, -5, 47, 6, -6, -3, 0],...
The model in question is attached:
The difference is between optimized Conv kernel used in full tflite and reference kernel used in tflite micro.
Potentially related:
https://github.com/tensorflow/tflite-micro/issues/2629
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.