Commit graph

12 commits

Author SHA1 Message Date
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
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
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
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
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
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
deqiangc
c6f54bd463
Fix BUILD dependency for generate_per_layer_tests script (#666) 2021-11-09 21:51:20 +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