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 4 of 15

0.69.0

Major Features and Improvements

* The `local_unfinalized_metrics_type` argument to
tff.learning.metrics.(secure_)sum_then_finalize is now optional (and is not
actually used). It will be removed in a future release.

Breaking Changes

* tff.learning.metrics.(secure_)sum_then_finalize now return polymorphic
computations. They can still be passed into algorithm builders (e.g.
tff.learning.algorithms.build_weighted_fed_avg) but to be called directly
they must first be traced with explicit types.
* Removed support for handling `tf.TensorSpec` using `to_type`, use
`tensorflow_to_type` instead.
* Removed support for calling `tff.TensorType` using a `tf.dtypes.DType`.

0.68.0

Major Features and Improvements

* Added `tff.types.tensorflow_to_type` function to convert structures
containing tensorflow type specs into a `tff.Type`.
* Deprecated `tff.types.infer_unplaced_type`.
* Updated `tff.types.ArrayShape` to be defined as a `Sequence` not an
`Iterable`, this is because the `len` of an `tff.types.ArrayShape` is used
for comparison.
* Deprecated the `type_signature` parameter for the
`tff.program.ReleaseManager.release` method.

Breaking Changes

* Removed the implementation of `tff.Value.__add__`.
* Removed the deprecated `tff.Type.check_*()` functions, use `isinstance`
instead.
* Removed `tff.types.at_clients` and `tff.types.at_server` functions, use the
`tff.FederatedType` constructor instead.
* Removed support for handling `tf.data.DatasetSpec`, `tf.RaggedTensorSpec`,
and `tf.SparseTensorSpec` using `tff.to_type`, use
`tff.types.tensorflow_to_type` instead.
* Removed support for handling `tf.RaggedTensor` and `tf.SparseTensor` using
`infer_type`.

0.67.0

Major Features and Improvements

* Updated the representation of a tff.TensorType.dtype to be a `np.dtype`
instead of `tf.dtypes.Dtype`.
* Added `tff.program.DelayedReleaseManager`.

Breaking Changes

* Removed `check_allowed_ops` from the `framework` package.
* Removed `check_disallowed_ops` from the `framework` package.
* Removed `replace_intrinsics_with_bodies` from the `framework` package.
* Removed `get_session_token` from the `framework` package.
* Added a workspace dependency on `pybind11_bazel`.
* Removed `type_from_tensors` from the `framework` package.
* Updated the version of `rules_python` to `0.23.0`.

Bug Fixes

* Temporary pin `googleapis-common-protos` to version `1.61.0` to work around
an issue with a transitive dependency.

0.66.0

Breaking Changes

* Removed the capability to pass a `tf.TensorShape` as the shape of a
`tff.TensorType`.

Bug Fixes

* Correctly materialize `SERVER` placed values out of the C++ execution stack
when using StreamingRemoteExecutor instead of returning an error about
placement not found.

0.65.0

Major Features and Improvements

* Update the representation of a `tff.TensorType.shape` to be a
`tff.types.ArrayShape` instead of `tf.TensorShape`.

* Updated `type_to_py_container``to be able to handle`tff.SequenceTypes` with
an unknown Python type.

Breaking Changes

* Moved `tff.structure_from_tensor_type_tree` to
`tff.types.structure_from_tensor_type_tree`.
* Remove the capability to pass an `int` as the shape of a `tff.TensorType`.

0.64.0

Major Features and Improvements

* Updated the TFF project and the Python package to be compatible with Python
3.11.
* Updated `train_process` to `train_process_factory` in vizier program logic
to support multiple trials in parallel.
* Added support for using non-OrderedDict mapping types.

Breaking Changes

* Updated the version of `grpc` to `v1.59.1`.
* Updated the version of `bazel` to `6.1.0`.
* Updated the version of `tensorflow` to `2.14.0`.
* Updated the version of `numpy` to `~=1.25`.
* Updated the version of `com_google_googletest` to `1.12.1`.

Bug Fixes

* Fixed import path for Vizier in federated program example.
* Fixed serialization of TenshorShape in error message to be human readable.
* Fixed bug in `tff.program.FileProgramStateManager` removing old program
state.

Page 4 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.