Commit Graph

1060 Commits

Author SHA1 Message Date
Majid Dadashi
2feb74eeff Add i4 support in tfl.slice
PiperOrigin-RevId: 825217744
2025-10-28 15:27:41 -07:00
Majid Dadashi
f67cb87691 Add support for int2/int4 in tfl.cast
PiperOrigin-RevId: 820509011
2025-10-16 20:50:00 -07:00
Majid Dadashi
7e4627b63f Add support for kTfLiteInt2 type export/import.
This change introduces a new `kTfLiteInt2` type to the TFLite schema and MLIR converter. It includes:
-   Adding `INT2` to the flatbuffer schema.
-   Mapping `TensorType_INT2` to `kTfLiteInt2` in flatbuffer conversions.
-   Updating `tflite_types.h` to include `kTfLiteInt2`.
-   Modifying `flatbuffer_export.cc` to handle 2-bit integer types from MLIR and pack them densely.
-   Generalizing low-bit utility functions (`PackLowBitValuesDensely`, `UnpackDenseLowBitIntoInt8`) to support both 2-bit and 4-bit values.
-   Updating type conversion utilities to recognize and handle `kTfLiteInt2`.
-   Adjusting `util.cc` to correctly report the size and byte requirements for `kTfLiteInt2` tensors, considering their dense packing.

PiperOrigin-RevId: 819821231
2025-10-15 11:22:15 -07:00
A. Unique TensorFlower
9d09cd4ceb Make NoneTensorSpec part of the public API.
PiperOrigin-RevId: 814121785
2025-10-02 01:34:04 -07:00
Maria Lyubimtseva
e791c5217d Add int16x8 kernel support for equal and not_equal ops
PiperOrigin-RevId: 807869896
2025-09-16 15:28:04 -07:00
Raviteja Gorijala
0f7a7a8762 Update RELEASE.md for 2.20.0 and 2.19.1 releases.
PiperOrigin-RevId: 796559086
2025-08-18 13:54:38 -07:00
Maria Lyubimtseva
c9a63013d7 Add int8 and int16x8 kernel support for sqrt
Workflow: dequantize input, run float sqrt implementation, quantize output.
PiperOrigin-RevId: 787242646
2025-07-25 14:43:13 -07:00
Raviteja Gorijala
21392a7966 Update release notes at HEAD
PiperOrigin-RevId: 783938512
2025-07-16 16:40:17 -07:00
Francisco Unda
58bae0da4e Announcement about deprecating tf lite within TF.
PiperOrigin-RevId: 777736971
2025-06-30 15:20:37 -07:00
Nicholas Wilson
7595ad9dcb
chore(links): replace URLs with HTTPS for better security 2025-04-21 11:40:42 -05:00
Jim Lin
c45f4ad43d #tf-data Adds min_parallelism option to allow advanced users to force set minimum parallelism for autotuning to reduce warm up time
PiperOrigin-RevId: 733804786
2025-03-05 11:30:49 -08:00
Vladimir Belitskiy
2c91388a06 Make tensorflow-io-gcs-filesystem an optional dependency.
The dependency has been causing a number of issues, see:
https://github.com/tensorflow/tensorflow/pull/82771

The support for the package is currently uncertain, and has
been on the low end for a while - no Windows wheels since 0.32.0, for example.

It has been capped on <py3.12 for a while now also.

PiperOrigin-RevId: 731313825
2025-02-26 08:03:09 -08:00
Fergus Henderson
46ed7f629a Some minor polishing of the release docs for 2.19.
1. Fix indentation.  The indentation of the first three bullet points in the markdown sources did not match the indentation of the fourth and fifth bullet points, nor of the bullet points further below.

2. Wrap some long lines in the markdown sources, in particular where there were some
lines wrapped but others not wrapped in the same bullet point list.

3. Use "Python API" rather than "Interpreter" as the subheading for changes
affecting the `tf.lite.Interpreter` Python class, for consistency with the earlier
heading "C++ API" in the same bullet point list.

PiperOrigin-RevId: 730380377
2025-02-24 03:40:51 -08:00
Raviteja Gorijala
cf611dd7c6 Update 2.19.0 release notes that we stopped publishing libtensorflow packages
PiperOrigin-RevId: 729182751
2025-02-20 11:48:03 -08:00
Raviteja Gorijala
fb5f04d000 Update release notes at HEAD
PiperOrigin-RevId: 725275193
2025-02-10 11:11:15 -08:00
Laura Pak
afe043f3d5 Clarify deletion timeline of tf.lite.Interpreter in TF 2.19.0 release notes to be TF 2.20, and deprecation notice
PiperOrigin-RevId: 704337843
2024-12-09 11:02:49 -08:00
Laura Pak
f17bd766f8 Add deprecation notice of tf.lite.Interpreter to TF 2.19.0 release notes and remove from 2.18, as no 2.18.1 is scheduled
PiperOrigin-RevId: 700142965
2024-11-25 17:19:49 -08:00
Laura Pak
27ad610b6c Add deletion warning to tf.lite.interpreter with a redirection notice to ai-edge-litert.interpreter
PiperOrigin-RevId: 696969850
2024-11-15 13:17:25 -08:00
Laura Pak
21dce87276 Warn if tf.lite.interpreter is used instead of ai-edge-litert.interpreter
PiperOrigin-RevId: 696217271
2024-11-13 11:55:11 -08:00
Jae H. Yoo
ca0bb02924 Bump up Cast op version op to 7 with bfloat16 runtime kernel support
This CL can resolve the latest bfloat16 TFLite flatbuffers' interpreter executation & quantization. It's required because quantization checks the TFLite float FB validation with interpreter.

PiperOrigin-RevId: 695529144
2024-11-11 17:04:39 -08:00
Fergus Henderson
b72cbba113 Use const references rather than constexpr for some constants
in the TF Lite C++ API.

This is to enable better API compatibility with TF Lite in Play services
while preserving the implementation flexibility of changing those constants
in future releases.

PiperOrigin-RevId: 693503483
2024-11-05 16:26:43 -08:00
Fergus Henderson
634fb91487 Move the release note about TFLite SignatureRunner to the right section.
This change moves the release notes item about SignatureRunner supporting
models with no signatures from the 'Breaking Changes' section to the
'Major Features and Improvments' section, since it is not a breaking
change.

PiperOrigin-RevId: 688541180
2024-10-22 07:33:53 -07:00
Tommy Chiang
e05c2c84e6 Generate configuration_generated.h properly
This change is a bug fix in the automatically generated code that was introduced by the new version of the flatbuffer generator that TensorFlow updated to in c17d64df85 which includes the following change https://github.com/google/flatbuffers/pull/7813 which fixed the underlying flatbuffer code generator bug.

PiperOrigin-RevId: 686567841
2024-10-16 11:27:11 -07:00
Artsiom Ablavatski
dde5634061 Add per-tensor quantization into dynamic range quantization execution path for TRANSPOSE_CONV layer (https://github.com/tensorflow/tensorflow/issues/76624)
PiperOrigin-RevId: 682438954
2024-10-04 14:35:00 -07:00
Raviteja Gorijala
7d1b0006e9 Update release notes for 2.17.1
PiperOrigin-RevId: 679281691
2024-09-26 13:59:51 -07:00
Kanglan Tang
7a0737aab1 Modify numpy upgrade info in the release notes
PiperOrigin-RevId: 678847763
2024-09-25 14:35:44 -07:00
Kanglan Tang
4d9084373a Add TF NumPy 2.0 support to 2.18 release note
PiperOrigin-RevId: 678390928
2024-09-24 14:35:52 -07:00
Raviteja Gorijala
2bfeaf3cdf Update release notes at HEAD
PiperOrigin-RevId: 678323612
2024-09-24 11:38:41 -07:00
Jim Lin
2751aeacce #tf-data Allows tf.data.experiemental.get_model_proto to accept NumpyIterator as input
PiperOrigin-RevId: 675684316
2024-09-17 13:33:21 -07:00
A. Unique TensorFlower
6ecdeb4727 Add coming changes related to LiteRT repo to release.md
PiperOrigin-RevId: 674377320
2024-09-13 11:52:14 -07:00
Artsiom Ablavatski
daa9e4e0d0 Support per-channel quantization in EmbeddingLookup TFLite op (runtime has already supports everything)
PiperOrigin-RevId: 669317431
2024-08-30 07:29:13 -07:00
A. Unique TensorFlower
9b5fa66dc6 Introduce hermetic CUDA in Google ML projects.
1) Hermetic CUDA rules allow building wheels with GPU support on a machine without GPUs, as well as running Bazel GPU tests on a machine with only GPUs and NVIDIA driver installed. When `--config=cuda` is provided in Bazel options, Bazel will download CUDA, CUDNN and NCCL redistributions in the cache, and use them during build and test phases.

    [Default location of CUNN redistributions](https://developer.download.nvidia.com/compute/cudnn/redist/)

    [Default location of CUDA redistributions](https://developer.download.nvidia.com/compute/cuda/redist/)

    [Default location of NCCL redistributions](https://pypi.org/project/nvidia-nccl-cu12/#history)

2) To include hermetic CUDA rules in your project, add the following in the WORKSPACE of the downstream project dependent on XLA.

   Note: use `@local_tsl` instead of `@tsl` in Tensorflow project.

   ```
   load(
      "@tsl//third_party/gpus/cuda/hermetic:cuda_json_init_repository.bzl",
      "cuda_json_init_repository",
   )

   cuda_json_init_repository()

   load(
      "@cuda_redist_json//:distributions.bzl",
      "CUDA_REDISTRIBUTIONS",
      "CUDNN_REDISTRIBUTIONS",
   )
   load(
      "@tsl//third_party/gpus/cuda/hermetic:cuda_redist_init_repositories.bzl",
      "cuda_redist_init_repositories",
      "cudnn_redist_init_repository",
   )

   cuda_redist_init_repositories(
      cuda_redistributions = CUDA_REDISTRIBUTIONS,
   )

   cudnn_redist_init_repository(
      cudnn_redistributions = CUDNN_REDISTRIBUTIONS,
   )

   load(
      "@tsl//third_party/gpus/cuda/hermetic:cuda_configure.bzl",
      "cuda_configure",
   )

   cuda_configure(name = "local_config_cuda")

   load(
      "@tsl//third_party/nccl/hermetic:nccl_redist_init_repository.bzl",
      "nccl_redist_init_repository",
   )

   nccl_redist_init_repository()

   load(
      "@tsl//third_party/nccl/hermetic:nccl_configure.bzl",
      "nccl_configure",
   )

   nccl_configure(name = "local_config_nccl")
   ```

PiperOrigin-RevId: 662981325
2024-08-14 11:47:44 -07:00
A. Unique TensorFlower
0df7ec86af Add support for using SignatureRunner with models with no signatures
In the absence of a model signature, with this change a SignatureRunner and a
AsyncSignatureRunner would take the names for their input/output tensors from
the model. This is necessary in order to ensure correct functionality for the
several (Async)SignatureRunner methods that take an input/output name as
argument.

Note that this change alters the behavior of AsyncSignatureRunner, an experimental API, in that it originally would assume nullptr for input/output names for models with no signatures.

PiperOrigin-RevId: 662908295
2024-08-14 08:10:23 -07:00
A. Unique TensorFlower
caa2b33e73 Disable TensorRT in TF, XLA and JAX.
This is needed for hermetic CUDA integration in Google ML projects since tensorRT is not distributed in the same free way as other CUDA/CUDNN distributives.

PiperOrigin-RevId: 662601190
2024-08-13 12:17:00 -07:00
Wilsin Gosti
3d8679ea7e #tf-data Add an optional use_unbounded_threadpool to map that is intended to speed up IO read when the map is used to read from IO.
PiperOrigin-RevId: 658916389
2024-08-02 15:23:07 -07:00
Joe Zou
47c91c8159 Support Int16 Activation Int4 Weight quantization in fully connected
The 4bit weights are unpacked on the fly to 8bits for computation.

PiperOrigin-RevId: 656240754
2024-07-25 22:10:19 -07:00
A. Unique TensorFlower
458cdad790 Update TensorFlow release notes about TensorFlow Lite breaking changes
PiperOrigin-RevId: 655691521
2024-07-24 14:38:13 -07:00
A. Unique TensorFlower
14725f749c support bad_indices_policy for TensorScatterOp and ScatterNdUpdateOp
This CL introduces the bad_indices_policy as ScatterNd already had.

PiperOrigin-RevId: 654727734
2024-07-22 07:05:16 -07:00
Pauline Sho
87b00de034 Support i4 EmbeddingLookup in TFLite reference
PiperOrigin-RevId: 653782883
2024-07-18 16:36:23 -07:00
Raviteja Gorijala
6df9c84f05 Update release notes at HEAD
PiperOrigin-RevId: 651869839
2024-07-12 14:25:25 -07:00
Quentin Khan
f4f2393888 Register StableHLO composite in the built-in operation resolver.
PiperOrigin-RevId: 644060676
2024-06-17 12:01:43 -07:00
Andrew Audibert
7d37407fa7 [tf.data] Add synchronous parameter to map.
When `synchronous` is set to `True`, the `map` will always run synchronously, even when `options.experimental_optimization.map_parallelization=True`. Setting `synchronous=True` is useful for saving memory, since it buffers one less element than setting `num_parallel_calls=1`.

PiperOrigin-RevId: 642418430
2024-06-11 16:24:08 -07:00
Jae H. Yoo
37ff47b612 Add support for int4 in dequantize op.
This CL adds int4 support inside the reference/optimized dequantize op including per-channel dequantization.

PiperOrigin-RevId: 642055280
2024-06-10 16:39:04 -07:00
Haoliang Zhang
1f9f641f41 Support int64 indice type for tflite dynamic update slice op.
PiperOrigin-RevId: 640348606
2024-06-04 18:54:33 -07:00
Raviteja Gorijala
506426f62b Insert blurb for new release notes TF 2.18.0.
PiperOrigin-RevId: 640315234
2024-06-04 16:28:15 -07:00
Kanglan Tang
262874b57e Add note on TensorFlow NumPy 2.0 upgrade in the next release
PiperOrigin-RevId: 638776511
2024-05-30 14:30:07 -07:00
A. Unique TensorFlower
714fa2c61e Added public announcement for the future TensorRT support deprecation.
PiperOrigin-RevId: 635919343
2024-05-21 14:15:45 -07:00
Sandeep Dasgupta
651e9b8c8a Add SavedModel to StableHLO Converter to TensorFlow pip package
PiperOrigin-RevId: 635568823
2024-05-20 15:00:09 -07:00
Jae H. Yoo
df8d64ea75 Fix Flatbuffer's upstream error on GetTemporaryPointer()
PiperOrigin-RevId: 634885829
2024-05-17 14:49:18 -07:00
Ziyin Huang
268491c6cb change the embedding API to enable the new sparse core preprocessing ops
PiperOrigin-RevId: 629143053
2024-04-29 12:17:57 -07:00