Commit graph

15 commits

Author SHA1 Message Date
Esun Kim
183da3e302
Typo in code (#3447)
* Typo in code

* Format
2026-02-11 20:34:42 +00:00
Esun Kim
dce2527b58
Refactor t2-2 (#3369) 2026-01-30 17:26:09 +00:00
Esun Kim
eacd4c404d
[Clean-up] Clang-format some existing files (#3179)
- Updated the clang-format to the latest (21)
- Reformatted all existing files using this new clang-format

BUG=SImple-clean-up
2025-09-22 21:30:38 +00:00
Esun Kim
ba753cef3e
[CI] Fix build (#3194)
- Upgraded the Bazel BuildTool to the latest version (8.2.1).
- Updated the `tflm-ci` Docker image and pushed the new tag (0.6.1) to the `ghcr.io/tflm-bot/tflm-ci registry`.
- Updated the WORKSPACE to load `rules_cc` and `rules_shell` explicitly
- Ran `buildifier` to ensure all BUILD files to have all the fixes.

BUG=Clean-up
2025-09-19 20:48:22 +00:00
Ryan Kuester
11b15b3a81
build(bazel): introduce tflm_cc_* macros, refactoring away micro_copts (#2765)
Remove micro_copts() by replacing every cc_* target that used
them with a tflm_cc_* equivalent, and setting those common copts
in one place, inside the tflm_cc_* macro.

This is the first of several commits introducing tflm_cc_* macros
in place of cc_binary, cc_library, and cc_test. Motivated by the
upcoming need to support conditional compilation, the objective
is to centralize build configuration rather than requiring (and
remembering that) each cc_* target in the project add the same
common attributes such as compiler options and select()ed

Alternatives such as setting global options on the command line
or in .bazelrc, even if simplified with a --config option, fail
to preserve flags and hooks for configuration in the case TFLM is
used as an external repository by an application project. Nor is
it easy in that case for individual targets to override an
otherwise global setting.

BUG=#2636
2024-11-14 23:16:28 +00:00
Eric Heim
6d337dc9f9
Microfrontend warnings (#2296)
Fix for #2295 

Fixed warnings when compiling with -Wsigned-compare and -Wdouble-promotion in tflite microfrontend.

BUG=#2295
2023-10-31 18:45:04 +00:00
Ryan Kuester
74e995231e
refactor: fix signed vs. unsigned comparison compiler warnings (#2064)
Fix various compiler warnings about signed vs. unsigned comparisons, in
preparation for enabling -Werror.

Fix by making the most straightforward, local changes. Improving the test
framework, changing types in data structures, and or adding some utility
functions might yield prettier code.

BUG=part of #2057
2023-06-16 18:29:27 +00:00
suleshahid
9bc9deab8d
Update KISSFFT Bazel version to match Makefile version (#2044)
In order to maintain a single version for our Makefile and Bazel builds, we should use the same version of KISSFFT. In addition, the Makefile version is properly setup to support multiple resolutions with the patch, so we apply that to the Bazel version as well.

BUG=[201319430](http://b/201319430)
2023-06-13 21:08:48 +00:00
Måns Nilsson
b51e1a7a24
Add armclang support for target based on Arm Corstone-300 software
Armclang need to use -ffp-mode=full because quantization unit test is
using NaN and without this use of NaN is undefined behavior.
Because of a compiler defect which only occurs with -ffp-mode=full a
workaround is done in the lstm unit test. The workaround prevents
implicit conversion from double to float. Since many of those
conversions would be inexact, the compiler would not consider those
conversions as constant expressions with -ffp-mode=full.

BUG=https://github.com/tensorflow/tflite-micro/issues/1305
2022-08-12 23:33:03 +00:00
sasapetr
07a2624796
Fix linter issues in a few files. (#1268)
* Fix linter issues in a few files.

* restore file whose source of truth is the upstream TF repo.

Co-authored-by: Advait Jain <advaitjain@google.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-07-21 20:47:45 +00:00
Shlomi Regev
de29703ba0
Wrap 16-bit Kiss FFT in a C++ namespace (#536)
* Wrap 16-bit Kiss FFT in a C++ namespace

This will enable us to support multiple copies of Kiss FFT for different
resolutions within the same application without running into linker
errors.

BUG=200737980

* Fix Bazel build by upgrading kissfft version to a version that has proper inclusion guards.

For Make build, where the include guards are patched in, change the
guards to a canonical format.

* missing header file and fix namespace wrapper.

* Sub extern C with extern C++ instead of undef-ing __cplusplus, which broke standard headers.

* Stop building kiss_fft source file. Instead, they are included in type-specific namespace wrappers

* Remove Kiss FFT source files from project generation makefile and consider kiss FFT .c files as headers

Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-09-27 12:00:36 -07:00
Advait Jain
2ddb3cc800
Update links to point to the tflite-micro github repository. (#283)
BUG=http://b/193437031
2021-07-14 21:23:24 +00:00
Advait Jain
077ae1003f
Revert https://github.com/tensorflow/tensorflow/pull/47935 (#127)
* Revert "Disable currently failing test to make the Xtensa build green. (#124)"

This reverts commit 20cdd3fb00.

* Cherry pick https://github.com/tensorflow/tensorflow/pull/50072

* clang-formatting fix.
2021-06-04 18:58:23 +00:00
TFLM-bot
9ea43319aa
Automated sync from github.com/tensorflow/tensorflow (#110) 2021-06-01 20:01:47 +00:00
Advait Jain
be84df4361
Sync micro_speech example from upstream TF. (#102)
Bug: http://b/184876027
2021-05-26 22:33:07 +00:00