The tensorflow-cpu package does not support MacOS or non-x86 hardware. Replacing the tensorflow-cpu python package requirement with the tensorflow meta package should enable the bazel build and the dependent python scripts to be used on those platforms.
BUG=#2367, #1781
Update the third_party flatbuffers library to v23.5.26, the
current version in upstream TF. Synchronize the override BUILD
and build_defs.bzl files with those from upstream TF at
e4485c98eae.
Also update the Makefile build, which downloads flatbuffers
separately. Rebase the patch applied to the download.
Regenerate the generated-and-checked-in schemas (see
ci/sync_from_upstream_tf.sh and codegen/preprocessor/
update_schema.sh), because they are stamped with the version of
the flatbuffers library, and fail a static_assert if they are
built with a different version of flatbuffers than they were
generated with.
BUG=unsuccessful attempt to fix warning in #2183
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
With this change, the sync between TF and TFLM should be fixed. However, the new test cases from http://cl/493746273 still need to be ported to TFLM.
BUG=http://b/260374880
NO_CHECK_TFLITE_FILES=manual sync from upstream
* Sync from upstream TF.
* Generate C++ bindings for schema as part of the import.
Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
Co-authored-by: Advait Jain <advaitjain@google.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This is the first step towards being able to manipulate flatbuffers from
Python from the TFLM github repository.
Manually confirmed that the following command works:
```
bazel test tensorflow/lite/tools:flatbuffer_utils_test
```
Note that the code that is sync'd from TF needs to have an updated
import path and we have changed the sync script to perform this
transformation.
These python tests will also be run as part of the bazel CI.
BUG=http://b/204109200