- 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
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
* Sync from upstream TF.
* Fix upstream TF Sync
The CI sync from the upstream TF has been failing for the last month
due to the relocation of certain TFLite files. In particular, the
error_reporter sources were moved to the compiler subdirectory.
This PR also includes a full sync to get us caught up again.
BUG=b/369123029
---------
Co-authored-by: TFLM-bot <tflm-github-bot@google.com>
The CI sync from the upstream TF has been failing for the last month due
to the relocation of certain TFLite files. In particular, some schema
files were relocated to tensorflow/compiler/mlir/lite subfolder. This PR
mirrors the migration and adds a few redirection headers to ensure
source compatibility for now.
This PR also includes a TF sync as well to get us caught up again. While
that could have been done separately, this is done together to ensure
everything continues to build with the relocations.
BUG=b/351824449
When building with a recent version of xt-clang and -std=c++11, the linker errs on missing definition of a static constexpr class member. In C++11, static class members still had to be defined in a C++11 file and TFLM code is expected to be compatible with C++11.
BUG=323856831
@tensorflow/micro
Change DebugLog to allow stdio style formatted output using either <cstdio> or a third party printf library.
Remove micro_string code.
bug=fixes #2083
Steps:
* modified ci/tflite_files.txt
* ```./ci/sync_from_upstream_tf.sh```
* additional changes needed to fix the build
There are some assumptions that we had been making that have been
somewhat broken by the changes from http://cl/539690111
More details to follow. This PR is currently to test that all the TFLM
builds are green.
BUG=http://b/287269351
NO_CHECK_TFLITE_FILES=manual sync + fixes
Changes in strided slice from http://cl/536336953 required updates to the kernel test.
Note that the TFLM strided\_slice kernel does not support the new offset parameter from http://cl/536336953. See http://b/285340415 for additional context.
NO_CHECK_TFLITE_FILES=manual sync from upstream.
BUG=http://b/285340415