Commit Graph

37 Commits

Author SHA1 Message Date
RJ Ascani 8137a35b88 Replace tensorflow-cpu usage with tensorflow (#2396)
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
2026-04-20 14:48:01 +08:00
Ryan Kuester 6bb1e3a635
build: update flatbuffers dependency to v23.5.26 (#2274)
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
2023-10-18 21:01:22 +00:00
TFLM-bot 4bbdef5f8a
Automated sync from github.com/tensorflow/tensorflow (#2251)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-09-29 16:09:38 +00:00
TFLM-bot 2f2c744672
Automated sync from github.com/tensorflow/tensorflow (#2226)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-09-15 17:47:49 +00:00
TFLM-bot ad8d238f9f
Automated sync from github.com/tensorflow/tensorflow (#2221)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-09-14 23:18:01 +00:00
TFLM-bot f800eb8026
Automated sync from github.com/tensorflow/tensorflow (#2214)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-09-12 16:42:33 +00:00
TFLM-bot a72c0554bc
Automated sync from github.com/tensorflow/tensorflow (#2198)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-09-01 20:13:01 +00:00
TFLM-bot c795f31e90
Automated sync from github.com/tensorflow/tensorflow (#2187)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-08-25 15:38:13 +00:00
TFLM-bot b4060efe00
Automated sync from github.com/tensorflow/tensorflow (#2182)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-08-23 15:38:18 +00:00
TFLM-bot 389d8f53de
Automated sync from github.com/tensorflow/tensorflow (#2177)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-08-18 17:33:54 +00:00
TFLM-bot 3c1c19b46f
Automated sync from github.com/tensorflow/tensorflow (#2161)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-08-10 15:06:10 +00:00
TFLM-bot aa61a91518
Automated sync from github.com/tensorflow/tensorflow (#2158)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-08-09 16:25:46 +00:00
TFLM-bot c6e758b3ac
Automated sync from github.com/tensorflow/tensorflow (#2049)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-06-20 22:33:01 +00:00
Advait Jain e63dc4cbcd
Sync from upstream TF. (#2053)
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
2023-06-14 23:27:57 +00:00
Advait Jain 982aaef60a
Manual sync from upstream (and additional changes) (#2018)
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
2023-06-01 22:41:30 +00:00
TFLM-bot e10c360b1e
Automated sync from github.com/tensorflow/tensorflow (#1865)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-03-31 04:19:35 +00:00
TFLM-bot 857f467014
Automated sync from github.com/tensorflow/tensorflow (#1843)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-03-24 16:02:13 +00:00
TFLM-bot 8746ec938e
Automated sync from github.com/tensorflow/tensorflow
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-01-10 19:40:00 +00:00
Advait Jain b92a211e31
Sync from upstream TF and cherrypick TFLM changes from http://cl/493746273
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
2022-12-14 16:36:15 +00:00
Pauline Sho bea0931154
Manual sync from upstream
Manual sync after cl/480442151
Manually added the change in `numpy_utils.cc`

BUG=b/246606168
NO_CHECK_TFLITE_FILES=manually ran sync_from_upstream.sh
2022-10-12 01:37:55 +00:00
suleshahid 54a86ad082
Cleanup on the flatbuffer update.
This is to cleanup some code after the latest flatbuffer version update PR.
* Update build targets in schema files to only have the original builds, :schema_fbs and :schema_py.
* Fix checking in of schema in nightly sync.
* Remove unneeded lines (of a deleted file) in copyright and license checks.


Bugs:
BUG= [243587789](https://buganizer.corp.google.com/issues/243587789)
BUG= [243588297](https://buganizer.corp.google.com/issues/243588297)
BUG= [243716132](https://buganizer.corp.google.com/issues/243716132)
2022-08-26 00:03:26 +00:00
suleshahid 1e74475fde
Update Flatbuffer version to 2.0.6 and generate schema local. (#1374) 2022-08-25 18:01:35 +00:00
TFLM-bot 487bcc5460
Automated sync from github.com/tensorflow/tensorflow
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2022-08-17 20:28:05 +00:00
TFLM-bot 313630deba
Sync from upstream TF. (#1298)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-08-03 04:08:02 +00:00
TFLM-bot 38c0b01dff
Sync from upstream TF. (#1292) 2022-07-30 19:26:03 +00:00
TFLM-bot 0c8c12342c
Automated sync from github.com/tensorflow/tensorflow (#1225)
* 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>
2022-07-21 09:59:11 +00:00
TFLM-bot 4b54460be5
Sync from upstream TF. (#1133) 2022-05-13 16:24:31 +00:00
TFLM-bot f76067002e
Sync from upstream TF. (#1095) 2022-05-05 21:11:06 +00:00
TFLM-bot 7f018add81
Sync from upstream TF. (#996) 2022-03-26 04:13:11 +00:00
TFLM-bot e6d85a1506
Sync from upstream TF. (#915) 2022-02-11 16:44:26 +00:00
TFLM-bot 4a6ca505b9
Automated sync from github.com/tensorflow/tensorflow (#776) 2021-12-13 09:37:54 -08:00
TFLM-bot 04a6af47e9
Automated sync from github.com/tensorflow/tensorflow (#692) 2021-11-17 23:20:10 +00:00
deqiangc c6f54bd463
Fix BUILD dependency for generate_per_layer_tests script (#666) 2021-11-09 21:51:20 +00:00
TFLM-bot 5bb6654a0f
Automated sync from github.com/tensorflow/tensorflow (#650) 2021-11-03 22:29:46 +00:00
Advait Jain e77f57733f
Sync schema_util.py from TF to TFLM. (#652)
This is needed to properly access the builtin code.

BUG=http://b/204109200
NO_CHECK_TFLITE_FILES=manually sync'd the code
2021-11-03 18:56:30 +00:00
Advait Jain 05694f8c38
Add flatbuffer_utils and corresponding test to the bazel build. (#632)
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
2021-10-28 15:57:34 -07:00
TFLM-bot 0beb99eb2a
Automated sync from github.com/tensorflow/tensorflow (#629) 2021-10-27 17:55:45 +00:00