Skip to content

Solve compiler errors in decode op - #3284

Merged
shlmregev merged 2 commits into
tensorflow:mainfrom
shlmregev:xtensa-failures
Jan 12, 2026
Merged

Solve compiler errors in decode op#3284
shlmregev merged 2 commits into
tensorflow:mainfrom
shlmregev:xtensa-failures

Conversation

@shlmregev

Copy link
Copy Markdown
Member
  1. When building with old Xtensa toolchains, the compiler throw an unused variable warning which is treated as error (-Werror is defined by default). The cause is ScopedMicroProfile instantiation in the decoder op. Added a dummy reference to mute the warning.

  2. Old pre C++14 Xtensa compilers don't support ticks in preprocessor constants, e.g. 0x8000'0000 Removed the ticks.

BUG=451462435

1. When building with old Xtensa toolchains, the compiler throw an unused variable warning
which is treated as error (-Werror is defined by default).
The cause is ScopedMicroProfile instantiation in the decoder op. Added a dummy reference to mute the warning.

2. Old pre C++14 Xtensa compilers don't support ticks in preprocessor constants, e.g. 0x8000'0000
Removed the ticks.

BUG=451462435
@shlmregev
shlmregev requested a review from a team as a code owner January 9, 2026 16:37
@TFLM-bot TFLM-bot removed the ci:run label Jan 9, 2026
@TFLM-bot TFLM-bot removed the ci:run label Jan 9, 2026
@shlmregev
shlmregev merged commit 1ed47b1 into tensorflow:main Jan 12, 2026
51 of 52 checks passed
shlmregev added a commit to shlmregev/tflite-micro that referenced this pull request Jan 12, 2026
1. When building with old Xtensa toolchains, the compiler throw an unused variable warning
which is treated as error (-Werror is defined by default).
The cause is ScopedMicroProfile instantiation in the decoder op. Added a dummy reference to mute the warning.

2. Old pre C++14 Xtensa compilers don't support ticks in preprocessor constants, e.g. 0x8000'0000
Removed the ticks.

BUG=451462435
github-merge-queue Bot pushed a commit that referenced this pull request Jan 14, 2026
* Add missing optimizations for xtensa/ and hexagon/ to forntend ops under signal/

* Revert change to copyright year

* Fix wrong include paths

* Reorder include paths

* Move static inline functions out of the namespace block.

* Fix path to KissFFT

* Remove file that was added by mistake

* Realized a lot of these optimizations were already added under src/

* Reverted a few more files

* Fix compilation errors

* Porting Reduce_All reference operator porting from TFLite to TFLM (#3269)

* Sync files related to Reverse_V2 from TFLite

#3110

* PRelu Int16x8 support in RefC

* Fix code style in prelu_test.cc

* 1. Reverted the copyright year

* Resolved compilation error for Int8x8 test case

* Add Dynamic_Update_Slice support to TFLM

* Code style error correction

* Code style correction

* Replaced hard coded MaxDimensions to RuntimeShape::kMaxSmallSize

* 1. Added more test cases \n2.Removed unused code

* Updates for test failure on ARM

* Code style updates

* Updates on test case failure for ARM

* Updates on test case failure for ARM

* Code style updates

* Add Reduce_All reference operator support to TFLM

* Resolving HiFi build errors

---------

Co-authored-by: Esun Kim <veblush@google.com>

* Provide default values for uninitialized variable (#3282)

Switch-cases in decode_state_lut.cc don't assign a default value
to a local variables. On one version of ARM GCC (building for ARM cortex m33, this results in
a compiler error [-Werror=maybe-uninitialized].

BUG=451462435

* Add Ingenic MIPS port to README.md (#3255)

* Add Ingenic MIPS port to README.md

* Update README.md

Changed order of new board to be alphabetical

* Update README.md

Removed extra brackets making things look wrong.

---------

Co-authored-by: Esun Kim <veblush@google.com>

* Solve compiler errors in decode op (#3284)

1. When building with old Xtensa toolchains, the compiler throw an unused variable warning
which is treated as error (-Werror is defined by default).
The cause is ScopedMicroProfile instantiation in the decoder op. Added a dummy reference to mute the warning.

2. Old pre C++14 Xtensa compilers don't support ticks in preprocessor constants, e.g. 0x8000'0000
Removed the ticks.

BUG=451462435

* Fix coding style

* Match FFT int16 test's tolerance with audiofrontend's

* Fix failure in micro_speech example

* Increase tolerance of feature extraction

* Incerased error interval for micro speech detection

* Incerased error interval for micro speech detection

* Incerased error interval for micro speech detection

* Incerased error interval for micro speech detection

* Comment on looser tolerance in micro speech test and limit it to Xtensa

---------

Co-authored-by: Kunasi Ramesh <28750242+rameshkunasi@users.noreply.github.com>
Co-authored-by: Esun Kim <veblush@google.com>
Co-authored-by: Matthew Vance <yinzara@gmail.com>
unmeshna017 pushed a commit to unmeshna017/tflite-micro that referenced this pull request Feb 10, 2026
1. When building with old Xtensa toolchains, the compiler throw an unused variable warning
which is treated as error (-Werror is defined by default).
The cause is ScopedMicroProfile instantiation in the decoder op. Added a dummy reference to mute the warning.

2. Old pre C++14 Xtensa compilers don't support ticks in preprocessor constants, e.g. 0x8000'0000
Removed the ticks.

BUG=451462435
unmeshna017 pushed a commit to unmeshna017/tflite-micro that referenced this pull request Feb 10, 2026
* Add missing optimizations for xtensa/ and hexagon/ to forntend ops under signal/

* Revert change to copyright year

* Fix wrong include paths

* Reorder include paths

* Move static inline functions out of the namespace block.

* Fix path to KissFFT

* Remove file that was added by mistake

* Realized a lot of these optimizations were already added under src/

* Reverted a few more files

* Fix compilation errors

* Porting Reduce_All reference operator porting from TFLite to TFLM (tensorflow#3269)

* Sync files related to Reverse_V2 from TFLite

tensorflow#3110

* PRelu Int16x8 support in RefC

* Fix code style in prelu_test.cc

* 1. Reverted the copyright year

* Resolved compilation error for Int8x8 test case

* Add Dynamic_Update_Slice support to TFLM

* Code style error correction

* Code style correction

* Replaced hard coded MaxDimensions to RuntimeShape::kMaxSmallSize

* 1. Added more test cases \n2.Removed unused code

* Updates for test failure on ARM

* Code style updates

* Updates on test case failure for ARM

* Updates on test case failure for ARM

* Code style updates

* Add Reduce_All reference operator support to TFLM

* Resolving HiFi build errors

---------

Co-authored-by: Esun Kim <veblush@google.com>

* Provide default values for uninitialized variable (tensorflow#3282)

Switch-cases in decode_state_lut.cc don't assign a default value
to a local variables. On one version of ARM GCC (building for ARM cortex m33, this results in
a compiler error [-Werror=maybe-uninitialized].

BUG=451462435

* Add Ingenic MIPS port to README.md (tensorflow#3255)

* Add Ingenic MIPS port to README.md

* Update README.md

Changed order of new board to be alphabetical

* Update README.md

Removed extra brackets making things look wrong.

---------

Co-authored-by: Esun Kim <veblush@google.com>

* Solve compiler errors in decode op (tensorflow#3284)

1. When building with old Xtensa toolchains, the compiler throw an unused variable warning
which is treated as error (-Werror is defined by default).
The cause is ScopedMicroProfile instantiation in the decoder op. Added a dummy reference to mute the warning.

2. Old pre C++14 Xtensa compilers don't support ticks in preprocessor constants, e.g. 0x8000'0000
Removed the ticks.

BUG=451462435

* Fix coding style

* Match FFT int16 test's tolerance with audiofrontend's

* Fix failure in micro_speech example

* Increase tolerance of feature extraction

* Incerased error interval for micro speech detection

* Incerased error interval for micro speech detection

* Incerased error interval for micro speech detection

* Incerased error interval for micro speech detection

* Comment on looser tolerance in micro speech test and limit it to Xtensa

---------

Co-authored-by: Kunasi Ramesh <28750242+rameshkunasi@users.noreply.github.com>
Co-authored-by: Esun Kim <veblush@google.com>
Co-authored-by: Matthew Vance <yinzara@gmail.com>
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.

3 participants