Commit Graph

79 Commits

Author SHA1 Message Date
Fergus Henderson
6f3bab216d Update from flatbuffers 25.2.10 to 25.9.23.
PiperOrigin-RevId: 813955553
2025-10-01 16:25:25 -07:00
Tommy Chiang
b5d169b91e Update flatbuffers to 25.2.10
No longer need to specify version by git commit. Use normal release version.

PiperOrigin-RevId: 799253783
2025-08-25 14:02:05 -07:00
Ivo Ristovski List
3e006e2862 Automated Code Change
PiperOrigin-RevId: 791034770
2025-08-04 22:05:01 -07:00
Richard Levasseur
3787c2e52e Convert remaining native.py_* usages to load from rules_python
The `bzl_library(defs_bzl)` dependency on `lit_bzl` is left commented out,
for now, because it transitively, through rules_cc, depends on a
bazel_skylib target (`@bazel_skylib/rules/directory/<something>`) that
isn't present in the version of bazel_skylib currently being used.

Because these bzl_library targets aren't really used in OSS, this missing
dependency (until bazel_skylib is upgraded) should be OK.

PiperOrigin-RevId: 757872351
2025-05-12 12:47:10 -07:00
A. Unique TensorFlower
f850e3d284 Bump XNNPACK version to remove executable stack from xla_extension.so.
Fix https://github.com/jax-ml/jax/issues/26781.

PiperOrigin-RevId: 732992391
2025-03-03 11:56:13 -08:00
Ezekiel Calubaquib
55232bcde4 Make the following targets tensorflow/lite visible publicly for LiteRT
PiperOrigin-RevId: 705952430
2024-12-13 12:26:04 -08:00
Jae H. Yoo
df8d64ea75 Fix Flatbuffer's upstream error on GetTemporaryPointer()
PiperOrigin-RevId: 634885829
2024-05-17 14:49:18 -07:00
A. Unique TensorFlower
c17d64df85 Update flatbuffers to 24.3.25
PiperOrigin-RevId: 631967585
2024-05-08 17:06:14 -07:00
A. Unique TensorFlower
d63ef0dca2 Reorganizing tfl schema.
PiperOrigin-RevId: 630425831
2024-05-03 11:01:23 -07:00
A. Unique TensorFlower
c2f3f78e10 Reverts dd491d46f1
PiperOrigin-RevId: 628242337
2024-04-25 17:47:58 -07:00
RJ Ascani
dd491d46f1 Reverts 2ba594da18
PiperOrigin-RevId: 627538841
2024-04-23 17:19:01 -07:00
A. Unique TensorFlower
2ba594da18 Update flatbuffers used in tflite.
PiperOrigin-RevId: 627165379
2024-04-22 15:05:15 -07:00
A. Unique TensorFlower
fb5b3bd518 Add load() statements for the builtin Bazel java rules
Loads are being added in preparation for moving the rules out of Bazel and into `rules_java`.

PiperOrigin-RevId: 622175129
2024-04-05 07:58:09 -07:00
A. Unique TensorFlower
aa6da142f3 Merged commit includes the following changes:
619575611  by A. Unique TensorFlower<gardener@tensorflow.org>:

    Run buildifier on all files where it sorts loads differently

--
619498661  by A. Unique TensorFlower<gardener@tensorflow.org>:

    [XLA:GPU][IndexAnalysis] Rename GetDefaultThreadIdToOutputIndexingMap to GetDefaultThreadIdIndexingMap.

    The "output" part was a bit confusing. We use this function for threadId->input
    mapping as well.

--
619490165  by A. Unique TensorFlower<gardener@tensorflow.org>:

    Convert S8 to BF16 in one step without going though F32.

--

PiperOrigin-RevId: 619575611
2024-03-27 18:00:18 +00:00
Tiago Quelhas
013f53e40b Output to bazel-bin instead of bazel-genfiles.
In the long term, all uses of bazel-genfiles will be replaced with bazel-bin. Starlark rules should only set `output_to_genfiles = True` when required for compatibility with other rules or tools that make assumptions about the location of output files.

Note that Bazel already defaults to `--incompatible_merge_genfiles_directory`, which makes the distinction moot anyway.

PiperOrigin-RevId: 611762875
2024-03-01 03:50:11 -08:00
Steven Toribio
4ca42b511e Update Flatbuffers Download to be compatible with Android API level >= 23
PiperOrigin-RevId: 584105785
2023-11-20 13:04:36 -08:00
Jake Harmon
132c98b29c Vendor XLA/TSL into TensorFlow as Bazel dependencies
This marks an important step towards delivering OpenXLA, Google’s OSS-based unified ML software infrastructure.

PiperOrigin-RevId: 563177047
2023-09-06 12:12:29 -07:00
johnnkp
bf006fed31
Update flatbuffers.BUILD
https://github.com/tensorflow/tensorflow/pull/61397#discussion_r1276565429
2023-07-28 01:19:37 +08:00
johnnkp
5f1cb30f3a
flatc: Fix VS2022 link error 2023-07-27 16:12:22 +08:00
A. Unique TensorFlower
491681a562 Fix version asserts in generated FlatBuffer code
PiperOrigin-RevId: 540044033
2023-06-13 12:51:54 -07:00
A. Unique TensorFlower
67d5c56198 Upgrade TensorFlow's Flatbuffer dependency to 23.5.8
PiperOrigin-RevId: 535777644
2023-05-26 20:44:43 -07:00
Quentin Khan
c3a577817f Update FlatBuffers to v23.1.21.
PiperOrigin-RevId: 520878542
2023-03-31 03:26:46 -07:00
Quentin Khan
86e0d74bb6 Update FlatBuffers to v23.1.20.
PiperOrigin-RevId: 519188918
2023-03-24 11:17:57 -07:00
Liam Miller-Cushon
994cad0051 Migrate from cfg = "host" to cfg = "exec"
PiperOrigin-RevId: 492220095
2022-12-01 09:42:49 -08:00
wcn
d8a85e6638 Internal-only change to BUILD files
PiperOrigin-RevId: 489204515
2022-11-17 07:20:54 -08:00
TensorFlower Gardener
3ef396642b Merge pull request #56475 from terryheo:fb-2.0.6
PiperOrigin-RevId: 455693353
2022-06-17 14:14:32 -07:00
Terry Heo
bf0901b663 Update FlatBuffer to 2.0.6
- Update build rules.
- Update generated schema headers.
2022-06-15 17:24:10 -07:00
Terry Heo
625a4045bc lite: Switch to Flatbuffer 2.0.5
Update TFLite build rules to use Flatbuffer v2.0.5
Also following changes are made:
- Updated schema_generated.h for 2.0.5.
- Fix a regression in flatbuffer_export.cc
- Update tensor comparison logic in quantize_model_test.cc

PiperOrigin-RevId: 454483837
2022-06-12 13:49:42 -07:00
Itai Zukerman
8fa1dfaa38 BUILD.bazel files in //third_party/name were by convention copied to the
root of the 3P repository.  But BUILD.bazel was also being interpreted by
bazel as the BUILD file for the //third_party/name folder, which is wrong.

This change renames those files to name.BUILD, a convention already being
used by some packages.

PiperOrigin-RevId: 409278565
Change-Id: Ib99c3474ec0b20d04cdb9d828f68c8303caec5fe
2021-11-11 17:08:47 -08:00
Itai Zukerman
865f0fff01 Replaced pairs of URLs with the tf_mirror_urls helper in TF OSS workspace files.
PiperOrigin-RevId: 409175589
Change-Id: Ib634a7a99477cfce4271b4a58f6cda5f5be69017
2021-11-11 10:04:37 -08:00
Alexander Grund
6a23f007b8
Add use_default_shell_env = True to all ctx.actions.run_shell rules
To compile flatbuffers definition Bazel starts the  flatbuffers compiler
flatc which is potentially built using a custom
toolchain and hence requires a set up LD_LIBRARY_PATH.
Ommitting the `use_default_shell_env` (defaulting to false) clears the
whole environment and the binary may try to use older system libs such
as /lib64/libstdc++.so causing it to fail in case it is (much) older
than the used libstdc++ from the custom toolchain which is very common
in HPC environments.
Hence I added `use_default_shell_env = True` as already done in e.g.
`_local_genrule_impl`.
2021-08-30 11:24:01 +02:00
Orivej Desh
5085b9660c Stabilize the order of definitions in schema_py_generated.py
This makes it reproducible.
2021-03-15 09:21:30 +03:00
Mihai Maruseac
cf0634e2ab Update Python flatbuffers dependency
PiperOrigin-RevId: 362184697
Change-Id: Ifecfa71b61066e7652addd7e76a62393b48ff44a
2021-03-10 18:00:30 -08:00
Meghna Natraj
38c1eba1a4 Update Python Flatbuffer contents by removing redundant files
PiperOrigin-RevId: 362095485
Change-Id: I404f3c735572df62167fa25716aa3f523eba8b03
2021-03-10 11:31:40 -08:00
Mihai Maruseac
19c6728118 Update Python Flatbuffer contents by removing redundant files
PiperOrigin-RevId: 360260751
Change-Id: I6685377430f07a116165edb2f5270ae06fa952c0
2021-03-01 13:17:48 -08:00
Meghna Natraj
13a6ed4e85 Update Python Flatbuffer contents by removing redundant files
PiperOrigin-RevId: 360215826
Change-Id: Ia076e71963895c43b79ef8b0991ee6b3b51ca751
2021-03-01 10:09:28 -08:00
Christian Sigg
5353e37cfc Remove third_party_http_archive.
Replace calls to `third_party_http_archive` with calls to `tf_http_archive` alias.

Disable 'mirror.tensorflow.org' check. A number of users don't seem to follow the requirements, which were not checked correctly before.

This wasn't discovered by presubmits because the check is in the repo rule, which only triggers if the repo is actually used.

PiperOrigin-RevId: 359355039
Change-Id: Ieddab6fd91b96e6e22afccdad21c8fa30b795ff4
2021-02-24 13:30:37 -08:00
Christian Sigg
8b86387383 Remove no longer needed patch files.
PiperOrigin-RevId: 359341089
Change-Id: If68062514bd413825396bd841a5052c0570385fb
2021-02-24 12:24:41 -08:00
Christian Sigg
61e0a79713 Merge third_party_http_archive and tf_http_archive repository rules.
PiperOrigin-RevId: 359331157
Change-Id: I34f0fad687b13900b42a60abe9573ae662bfb75e
2021-02-24 11:42:32 -08:00
Christian Sigg
fb09ff35e8 Remove 'delete' attribute from {third_party,tf}_http_archive and use patches instead.
Fix mirror.tensorflow.org check.

PiperOrigin-RevId: 359324710
Change-Id: I84fd011f999fa79dd890b9ad861532d5994b570a
2021-02-24 11:12:43 -08:00
Meghna Natraj
bcc6c99c90 Fix the TF wheel build on Windows.
PiperOrigin-RevId: 355400706
Change-Id: I28de129edc73a1ede72c1276d8e11c9737f1c220
2021-02-03 08:23:37 -08:00
TensorFlower Gardener
7929abe869 Merge pull request #46550 from elfringham:flatbuffer_fix
PiperOrigin-RevId: 353281962
Change-Id: I0469ac428dfbcd73b905417ae9df8b0c64b3e15f
2021-01-22 11:44:51 -08:00
A. Unique TensorFlower
985ad0276a PY2 removal cleanup
PiperOrigin-RevId: 352907145
Change-Id: I82de30d92dc9c2b53215d6d5732c67afe339c23d
2021-01-20 17:11:44 -08:00
Andrew Goodbody
60aea05061 Allow environment variables to execution of flatc command 2021-01-20 10:15:29 +00:00
Meghna Natraj
f98fc1387d Use the python flatbuffers library with the correct file paths
PiperOrigin-RevId: 334662368
Change-Id: I648738fc64997b4b21afffcf125732f0d13b45de
2020-09-30 13:14:10 -07:00
Akshay Modi
7d94d03f7a Fix issue using python flatbuffers library.
PiperOrigin-RevId: 331663655
Change-Id: I6b4f617177717faf6d0c216f3ca6bb5aba46ddbe
2020-09-14 17:47:19 -07:00
Meghna Natraj
e7e5bc9440 Fix issue using python flatbuffers library.
PiperOrigin-RevId: 331633117
Change-Id: I92b1d4af9e046a6f0e610365ce95e90fa7e05921
2020-09-14 14:51:30 -07:00
A. Unique TensorFlower
f5cb94eae2 Changes excluded by Copybara
PiperOrigin-RevId: 328408665
Change-Id: I86fb74f6eac377afeca2b65df067352dc17e0168
2020-08-25 14:55:59 -07:00
Balint Cristian
502b611144 [EXT-SYSLIB] Add runtime_py for external flatbuffer. 2020-08-10 10:30:22 +03:00
Meghna Natraj
a9b6a48489 Fix errors related to flatbuffers python library in Kokoro ubuntu_16 GCS build
PiperOrigin-RevId: 323452135
Change-Id: I3d602969e74dfbca5d83f153f107742dd9685f5b
2020-07-27 15:28:02 -07:00