Tensorflow-federated

Latest version: v0.87.0

Safety actively analyzes 701563 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 15

0.75.0

Major Features and Improvements

* Updated the type annotation for MaterializedValue to include the Python
scalar types in addition to the numpy scalar types.
* Added a `Literal` to the TFF language, part 1.
* Added `Literal` to the framework package.
* Extended
`tff.learning.algorithms.build_weighted_fed_avg_with_optimizer_schedule` to
support `tff.learning.models.FunctionalModel`.

Breaking Changes

* Deleted the `tff.learning.framework` namespace⚰️.

Bug Fixes

* Fixed logic for determining if a value can be cast to a specific dtype.
* Fixed a bug where repeated calls to
`FilePerUserClientData.create_tf_dataset_for_client` could blow up memory
usage

0.74.0

Major Features and Improvements

* Make some of the C++ executor APIs public visibility for downstream repos.
* Moved the `DataType` protobuf object into its own module. Moving the
`DataType` object into its own module allows `DataType` to be used outside
of a `Computation` more easily and prevents a circular dependency between
`Computation` and `Array` which both require a `DataType`.
* Updated `build_apply_optimizer_finalizer` to allow custom reject update
function.
* Relaxed the type requirement of the attributes of `ModelWeights` to allow
assigning list or tuples of matching values to other sequence types on
`tf.keras.Model` instances.
* Improved the errors raised by JAX computations for various types.
* Updated tutorials to use recommended `tff.learning` APIs.

Breaking Changes

* Removed the runtime-agnostic support for `tf.RaggedTensor` and
`tf.SparseTensor`.

0.73.0

Major Features and Improvements

* Make some of the C++ executor APIs public visibility for downstream repos.
* `tff.learning.algorithms.build_fed_kmeans` supports floating point weights,
enabling compatibility with `tff.aggregators` using differential privacy.
* Added two new metrics aggregators:
`tff.learning.metrics.finalize_then_sample` and
`tff.learning.metrics.FinalizeThenSampleFactory`.

Breaking Changes

* Remove the ability to return `SequenceType` from `tff.federated_computation`
decorated callables.

Bug Fixes

* `tff.learning` algorithms now correctly do *not* include metrics for clients
that had zero weight due to model updates containing non-finite values.
Previously the update was rejected, but the metrics still aggregated.

0.72.0

Major Features and Improvements

* Added an async XLA runtime under `tff.backends.xla`.

Breaking Changes

* Updated `tensorflow-privacy` version to `0.9.0`.
* Removed the deprecated `type_signature` parameter from the
`tff.program.ReleaseManager.release` method.

0.71.0

Major Features and Improvements

* Added new environment-specific packages to TFF.

0.70.0

Breaking Changes

* Temporarily disable `tff.program.PrefetchingDataSource` due to flakiness
from a lack of determinism.
* Removed support for invoking `infer_type` with TensorFlow values.
* Removed deprecated `tff.aggregators.federated_(min|max)`symbols, please use
`tff.federated_(min|max)` instead.
* Removed support for creating a `tff.TensorType` using a `tf.dtypes.DType`.
* Removed `tff.check_return_type`.

Bug Fixes

* Declared `OwnedValueId::INVALID_ID` as a static constexpr.

Page 3 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.