Fix Flatbuffer's upstream error on GetTemporaryPointer()

PiperOrigin-RevId: 634885829
This commit is contained in:
Jae H. Yoo 2024-05-17 14:23:09 -07:00 committed by TensorFlower Gardener
parent da07e34ae4
commit df8d64ea75
3 changed files with 7 additions and 4 deletions

View File

@ -87,6 +87,8 @@
* The Python TF Lite Interpreter bindings now have an option
`experimental_default_delegate_latest_features` to enable all default
delegate features.
* Flatbuffer version update:
* `GetTemporaryPointer()` bug fixed.
* `tf.data`
* Add `wait` to `tf.data.Dataset.load`. If `True`, for snapshots written

View File

@ -23,8 +23,9 @@ OverridableFetchContent_Declare(
flatbuffers
GIT_REPOSITORY https://github.com/google/flatbuffers
# Sync with tensorflow/third_party/flatbuffers/workspace.bzl
GIT_TAG v24.3.25
GIT_SHALLOW TRUE
GIT_TAG e6463926479bd6b330cbcf673f7e917803fd5831
# NOTE: b/340264458 - `GIT_SHALLOW TRUE` works for tag name only.
GIT_SHALLOW FALSE
GIT_PROGRESS TRUE
SOURCE_DIR "${CMAKE_BINARY_DIR}/flatbuffers"
)

View File

@ -5,10 +5,10 @@ load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
# _FLATBUFFERS_GIT_COMMIT / _FLATBUFFERS_SHA256 were added due to an urgent change being made to
# Flatbuffers that needed to be updated in order for Flatbuffers/TfLite be compatible with Android
# API level >= 23. They can be removed next flatbuffers offical release / update.
_FLATBUFFERS_GIT_COMMIT = "595bf0007ab1929570c7671f091313c8fc20644e"
_FLATBUFFERS_GIT_COMMIT = "e6463926479bd6b330cbcf673f7e917803fd5831"
# curl -L https://github.com/google/flatbuffers/archive/<_FLATBUFFERS_GIT_COMMIT>.tar.gz | shasum -a 256
_FLATBUFFERS_SHA256 = "987300083ec1f1b095d5596ef8fb657ba46c45d786bc866a5e9029d7590a5e48"
_FLATBUFFERS_SHA256 = "c9c6b8653597ed7ee5c62243979010bd0f09b29a46be414505bc5b58a874bb17"
def repo():
tf_http_archive(