Skip to content

Commit

Permalink
Update flatbuffers to 24.3.25
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 631967585
  • Loading branch information
tensorflower-gardener committed May 9, 2024
1 parent 1a6d038 commit c17d64d
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ limitations under the License.
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
FLATBUFFERS_VERSION_MINOR == 3 &&
FLATBUFFERS_VERSION_REVISION == 7,
FLATBUFFERS_VERSION_REVISION == 25,
"Non-compatible flatbuffers version included");

namespace tflite {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ limitations under the License.
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
FLATBUFFERS_VERSION_MINOR == 3 &&
FLATBUFFERS_VERSION_REVISION == 7,
FLATBUFFERS_VERSION_REVISION == 25,
"Non-compatible flatbuffers version included");

namespace tflite {
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/lite/delegates/gpu/cl/serialization_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ limitations under the License.
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
FLATBUFFERS_VERSION_MINOR == 3 &&
FLATBUFFERS_VERSION_REVISION == 7,
FLATBUFFERS_VERSION_REVISION == 25,
"Non-compatible flatbuffers version included");

#include "gpu_model_generated.h"
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/lite/delegates/gpu/common/gpu_model_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
FLATBUFFERS_VERSION_MINOR == 3 &&
FLATBUFFERS_VERSION_REVISION == 7,
FLATBUFFERS_VERSION_REVISION == 25,
"Non-compatible flatbuffers version included");

#include "serialization_base_generated.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ limitations under the License.
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
FLATBUFFERS_VERSION_MINOR == 3 &&
FLATBUFFERS_VERSION_REVISION == 7,
FLATBUFFERS_VERSION_REVISION == 25,
"Non-compatible flatbuffers version included");

namespace tflite {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ limitations under the License.
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
FLATBUFFERS_VERSION_MINOR == 3 &&
FLATBUFFERS_VERSION_REVISION == 7,
FLATBUFFERS_VERSION_REVISION == 25,
"Non-compatible flatbuffers version included");

namespace tflite {
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/lite/schema/conversion_metadata_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ limitations under the License.
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
FLATBUFFERS_VERSION_MINOR == 3 &&
FLATBUFFERS_VERSION_REVISION == 7,
FLATBUFFERS_VERSION_REVISION == 25,
"Non-compatible flatbuffers version included");

namespace tflite {
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/lite/schema/schema_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ limitations under the License.
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
FLATBUFFERS_VERSION_MINOR == 3 &&
FLATBUFFERS_VERSION_REVISION == 7,
FLATBUFFERS_VERSION_REVISION == 25,
"Non-compatible flatbuffers version included");

namespace tflite {
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/lite/tools/cmake/modules/flatbuffers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ OverridableFetchContent_Declare(
flatbuffers
GIT_REPOSITORY https://github.com/google/flatbuffers
# Sync with tensorflow/third_party/flatbuffers/workspace.bzl
GIT_TAG v24.3.7
GIT_TAG v24.3.25
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
SOURCE_DIR "${CMAKE_BINARY_DIR}/flatbuffers"
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/tools/ci_build/release/requirements_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This will change in the future.
absl-py ~= 1.0.0
astunparse ~= 1.6.3
flatbuffers ~= 24.3.7
flatbuffers ~= 24.3.25
google_pasta ~= 0.2
h5py ~= 3.10.0 # Earliest version for Python 3.12
ml_dtypes ~= 0.3.1
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/tools/pip_package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def standard_or_nightly(standard, nightly):
REQUIRED_PACKAGES = [
'absl-py >= 1.0.0',
'astunparse >= 1.6.0',
'flatbuffers >= 24.3.7',
'flatbuffers >= 24.3.25',
'gast >=0.2.1,!=0.5.0,!=0.5.1,!=0.5.2',
'google_pasta >= 0.1.1',
'h5py >= 3.10.0',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# This will change in the future.
absl-py ~= 1.0.0
astunparse ~= 1.6.3
flatbuffers ~= 24.3.7
flatbuffers ~= 24.3.25
google_pasta ~= 0.2
h5py ~= 3.10.0 # Earliest version for Python 3.12
ml_dtypes ~= 0.3.1
Expand Down
4 changes: 2 additions & 2 deletions third_party/flatbuffers/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "6ff9e90e7e399f3977e99a315856b57c8afe5b4d"
_FLATBUFFERS_GIT_COMMIT = "595bf0007ab1929570c7671f091313c8fc20644e"

# curl -L https://github.com/google/flatbuffers/archive/<_FLATBUFFERS_GIT_COMMIT>.tar.gz | shasum -a 256
_FLATBUFFERS_SHA256 = "f4b3dfed9f8f4f0fd9f857fe96a46199cb5745ddb458cad20caf6837230ea188"
_FLATBUFFERS_SHA256 = "987300083ec1f1b095d5596ef8fb657ba46c45d786bc866a5e9029d7590a5e48"

def repo():
tf_http_archive(
Expand Down

0 comments on commit c17d64d

Please sign in to comment.