Commit graph

51 commits

Author SHA1 Message Date
Pedro Gonnet
f50d917a19
Switch to LiteRT repo (#3199)
* Switch from the github.com/tensorflow/tensorflow repository to the new github.com/google-ai-edge/LiteRT repository for TFLite sources.

* Fix up include paths.

* More fixes.

* Fix more paths.

* Re-add missing python fixes.

* Re-add missing python fixes.

* Re-run `bazel run //third_party:python_requirements.update -- --upgrade` with Python 3.12.

* Revert third_party/python_requirements.txt.

---------

Co-authored-by: Esun Kim <veblush@google.com>
2025-10-06 14:52:15 +02: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
TFLM-bot
904edd2ce2
Automated sync from github.com/tensorflow/tensorflow (#2308)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-11-10 16:17:26 +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
6bc110cedc
Automated sync from github.com/tensorflow/tensorflow (#1785)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-03-01 19:55:49 +00:00
TFLM-bot
9344d2b64e
Automated sync from github.com/tensorflow/tensorflow (#1749)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-02-16 22:13:17 +00:00
Advait Jain
4508ac2493
Remove duplicate files, improve sync script and project generation CI.
* Explicitly delete shared TFL/TFLM files prior to sync'ing so that stale files are deleted.
 * Added a bazel build to the project generation CI. This catches errors  like http://b/261106859 that were not caught with the Makefile.
 * Manually ran the sync script: `ci/sync_from_upstream_tf.sh` and included the changes as a separate commit (https://github.com/tensorflow/tflite-micro/pull/1606/commits/99c7ff8a5f2907379002603fc13c40f5077f46dc)


Tested:
 * Confirmed that the new bazel build in test_project_generation would have caught http://b/261106859 by uploading commits with the stale files and seeing that the presubmit checks fail with errors like:
```
/usr/bin/ld.gold: bazel-out/k8-fastbuild/bin/_objs/libtflm/0/common.pic.o: previous definition here
/usr/bin/ld.gold: error: bazel-out/k8-fastbuild/bin/_objs/libtflm/1/common.pic.o: multiple definition of 'TfLiteOpaqueDelegateDelete'
/usr/bin/ld.gold: bazel-out/k8-fastbuild/bin/_objs/libtflm/0/common.pic.o: previous definition here
collect2: error: ld returned 1 exit status
Target //:libtflm failed to build
```

BUG=http://b/261106859
2022-12-06 21:52:47 +00:00
Advait Jain
e7bde952c8
Fix the TF --> TFLM sync
* added the new files to be sync'd to `ci/tflite_files.txt`
 * manually ran the sync script: `ci/sync_from_upstream_tf.sh`
 * update BUILD files to match changes from http://cl/488654028

Note that the changes from e6b9bd0190 are also included in this PR due to running sync script.

NO_CHECK_TFLITE_FILES=manual sync from upstream TF
BUG=http://b/259507701
2022-11-17 17:51:43 +00:00
Vamsi Krishna Manchala
37e8a2be81
manual sync from upstream tensorflow
BUG=manual sync from upstream
NO_CHECK_TFLITE_FILES=manual sync from upstream
2022-11-15 08:42:45 +00:00
TFLM-bot
4da125f004
Automated sync from github.com/tensorflow/tensorflow
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2022-11-11 17:12:37 +00:00
TANMAY DAS
e9a3abacca
Manual sync from tflite (#1512)
The automatic sync job from tflite to tflm is failing due to some incompatibility in cpp version. TFLM uses c++11. The three commits can be described as 
1. The output of the sync_from_upstream_tf.sh. This script pull in the differences from the tflite repo to tflm repo.
2. http://b/255803710: In cpp11 constexpr methods should have one return statement.
3. http://b/254707165: Need reinterpret_cast to be able to compile with cpp11.

BUG=http://b/254707165 / http://b/255803710
NO_CHECK_TFLITE_FILES=automated sync file changes with some bug fixes
2022-11-01 16:16:34 -07:00
TFLM-bot
9f7c5095f4
Automated sync from github.com/tensorflow/tensorflow
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2022-10-17 20:43:16 +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
TFLM-bot
3648cf9003
Automated sync from github.com/tensorflow/tensorflow
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2022-10-06 23:58:22 +00:00
TFLM-bot
bc9dc2959a
Automated sync from github.com/tensorflow/tensorflow (#1423) 2022-09-19 20:46:32 +00:00
TFLM-bot
6390ebeeed
Automated sync from github.com/tensorflow/tensorflow
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2022-09-15 16:22:29 +00:00
TFLM-bot
514e62511b
Automated sync from github.com/tensorflow/tensorflow
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2022-09-10 18:38:10 +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
22baefb111
Automated sync from github.com/tensorflow/tensorflow (#1200)
* Sync from upstream TF.

* Manually reverted generated code from flatc to be pre-2.0.5

Co-authored-by: Advait Jain <advaitjain@google.com>
2022-06-24 18:08:34 +00:00
TFLM-bot
9b2acc95e9
Sync from upstream TF. (#1137) 2022-06-08 14:38:32 +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
deqiangc
abe4c247d1
sync from github.com/tensorflow/tensorflow (#1082) 2022-04-26 22:32:16 +00:00
TFLM-bot
d817b58c60
Sync from upstream TF. (#1061)
Co-authored-by: Ting Yan <94130036+tingyan19@users.noreply.github.com>
2022-04-19 18:20:46 +00:00
TFLM-bot
daf0b4783f
Sync from upstream TF. (#1032) 2022-04-07 14:39:42 +00:00
TFLM-bot
1501b574b7
Sync from upstream TF. (#1016)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-04-07 00:18:09 +00:00
deqiangc
e0d6c42f5c
Remove obsolete common.c (#989)
* Remove obsolete common.c

As noted in PR #935,  upstream rename common.cc to common.c.
PR #935 import common.cc, but did not remove common.c.
This PR removes common.c from tflite_micro repo.

BUG=offline observation

* Update BUILD
2022-03-23 00:28:45 +00:00
TFLM-bot
36a66e8422
Sync from upstream TF. (#941) 2022-02-19 18:57:01 +00:00
deqiangc
c9b21d3a39
Sync from upstream after updating the sync file list (#938)
This PR:
1. Update the tflite_files.txt with two additional files to be
pulled in
2. Add build rules to include context_util, builtin_op_data.h
and builtin_ops.h
3. Sync from upstream manually

BUG=observe errors in automatically
sync from upstream

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-18 04:10:59 +00:00
TFLM-bot
e6d85a1506
Sync from upstream TF. (#915) 2022-02-11 16:44:26 +00:00
TFLM-bot
14db41c1c2
Sync from upstream TF. (#793)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-12-16 04:59:22 +00:00
TFLM-bot
4a6ca505b9
Automated sync from github.com/tensorflow/tensorflow (#776) 2021-12-13 09:37:54 -08:00
Thibaut Goetghebuer-Planchon
fb753565ca
Use SUB kernels instead of ADD kernels with negative multiplier. (#665)
* Use SUB kernels instead of ADD kernels with negative multiplier.

The change will allow to restrict multipliers to positive integers in MultiplyByQuantizedMultiplier.

* Manually run sync from TF to TFLM to get the changes from https://github.com/tensorflow/tensorflow/pull/50615

Co-authored-by: Advait Jain <advaitjain@google.com>
2021-11-12 21:39:37 +00:00
TFLM-bot
5bb6654a0f
Automated sync from github.com/tensorflow/tensorflow (#650) 2021-11-03 22:29:46 +00:00
deqiangc
68063bee7a
Format fix on all BUILD files (#616)
* Add NonPersistentMemoryPlanner integration test with MicroAllocator

Add a buffer_request_count to keep track of buffer request to do error
checking.

Also rename variable names in NonpersistentMemoryPlannerShim per extra
review comments.

This corresponds to internal cl/403489054

BUG=http://b/199230276

* Add build file format check and fix in test_code.sh

Also run format fix on all BUILD and bzl files.

After this PR, BUILD and bzl files will be checked in presubmit.

BUG=http://b/203803273

* Move change in test_code_style.sh into a separate PR
2021-10-25 18:32:29 +00:00
TFLM-bot
90ed783b4b
Sync from upstream TF. (#609) 2021-10-20 08:12:13 -07:00
TFLM-bot
5b10619d8a
Sync from upstream TF. (#535) 2021-09-24 09:23:47 -07:00
TFLM-bot
26a28789f3
Sync from upstream TF. (#519) 2021-09-18 10:03:50 -07:00
TFLM-bot
0f40100fc6
Automated sync from github.com/tensorflow/tensorflow (#517) 2021-09-17 11:24:42 -07:00
TFLM-bot
b6cbaea68b
Automated sync from github.com/tensorflow/tensorflow (#372) 2021-08-11 01:34:14 +00:00
TFLM-bot
bfd9f923c7
Sync from upstream TF. (#320) 2021-07-24 08:43:03 -07:00
TFLM-bot
5ebe8afc24
Automated sync from github.com/tensorflow/tensorflow (#313) 2021-07-23 20:17:53 +00:00
TFLM-bot
54a04cbed8
Automated sync from github.com/tensorflow/tensorflow (#214) 2021-06-23 16:20:06 +00:00
TFLM-bot
6c41d56dde
Sync from upstream TF. (#180) 2021-06-16 14:23:51 +00:00
TFLM-bot
2e41b66efc
Sync from upstream TF. (#140) 2021-06-08 14:21:58 +00:00
TFLM-bot
fcbc8d6148
Sync from upstream TF. (#121) 2021-06-03 07:44:19 -07:00
TFLM-bot
7fef07989f
Automated sync from github.com/tensorflow/tensorflow (#81) 2021-05-19 20:31:16 +00:00
github-actions[bot]
922747e8e7
Automated sync from github.com/tensorflow/tensorflow (#50)
Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-04-30 16:49:33 +00:00
Advait Jain
27eff3c71d
Sync from upstream TF with ci/sync_from_upstream_tf.sh (#31) 2021-04-28 17:43:36 +00:00
Advait Jain
5a65a54ce2
Sync from upstream with ci/sync_from_upstream_tf.sh (#15) 2021-04-21 03:23:30 +00:00