Commit graph

54 commits

Author SHA1 Message Date
Esun Kim
e142972d4f
Manual sync from sync from github.com/tensorflow/tensorflow (#3616)
* Synced

* Added FLOAT8_* types
2026-07-01 18:13:01 -07:00
TFLM-bot
f2b2b3f51c
Sync from upstream TF. (#3461) 2026-02-12 22:18:36 +00:00
Esun Kim
807c35d6a9
Bazel Module (#3364)
* Work

* Review update

* Enabled tests

* Bazel: Suppress warnings from external repositories

* Fixed whl_test

* Formatted

* More format
2026-02-11 14:11:47 -08:00
TFLM-bot
98b493b42a
Sync from upstream TF. (#3363) 2026-01-28 22:38:29 +00:00
Esun Kim
966bda66a6
Added UINT4 support (Sync from github.com/tensorflow/tensorflow) (#3283)
* Added UINT4 support

* Sync from upstream TF.

---------

Co-authored-by: TFLM-bot <tflm-github-bot@google.com>
2026-01-16 10:05:13 -08:00
Esun Kim
fd33340e06
Revert "[CI] Replaced tensorflow with tensorflow-cpu (#3261)" (#3290)
This reverts commit 9cbf6e0403.
2026-01-12 11:19:37 -08:00
Esun Kim
9cbf6e0403
[CI] Replaced tensorflow with tensorflow-cpu (#3261)
* Replaced tensorflow with tensorflow-cpu

* Use tensorflow-cpu for bazel targets
2025-12-03 13:43:14 -08:00
TFLM-bot
9b9b1e32e0
Sync from upstream TF. (#3249) 2025-11-07 09:43:05 -08:00
TFLM-bot
37fb41f371
Automated sync from github.com/tensorflow/tensorflow (#3214)
* Sync from upstream TF.

* Manual change from cl/819821231

* Fix

* Copyright

---------

Co-authored-by: Esun Kim <veblush@google.com>
2025-10-16 14:33:56 -07: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
suleshahid
bc68d362d6
Remove deprecated BUILD tags (#3091)
These tags have been deprecated and are unused now. Syncing with upstream and removing them from the BUILD files.

BUG=remove deprecated tags
2025-04-08 19:21:25 +00:00
TFLM-bot
c4979643f3
Automated sync from github.com/tensorflow/tensorflow (#2723)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2024-12-12 23:03:52 +00:00
suleshahid
39ba5a848d
Fix upstream sync (again) (#2763)
* sync from upstream with new files

* formatting
2024-12-11 11:43:49 -08:00
RJ Ascani
011a68423a
Fix upstream TF sync (#2694)
* 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>
2024-09-24 10:47:58 -07:00
RJ Ascani
ff5c090eca
Fix upstream TF sync (#2625)
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
2024-07-15 13:04:01 -07:00
TFLM-bot
fc498a8049
Automated sync from github.com/tensorflow/tensorflow (#2553)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2024-04-24 14:45:16 +00:00
TFLM-bot
98de88594a
Automated sync from github.com/tensorflow/tensorflow (#2510)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2024-03-18 22:09:28 +00:00
RJ Ascani
29526e413b
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
2024-02-23 00:35:22 +00: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