tff.utils.build_dp_aggregate_process

Builds a MeasuredProcess for tensorflow_privacy DPQueries.

The returned MeasuredProcess processes values of type value_type which can be any nested structure of tensors. Note that client weighting is not supported for differential privacy so the weight argument to the resulting MeasuredProcess will be ignored.

value_type The type of values to be aggregated by the MeasuredProcess. Can be a tff.TensorType or a nested structure of tff.StructType that bottoms out in tff.TensorType.
query A DPQuery to aggregate. For compatibility with tensorflow_federated, the global_state and sample_state of the query must be structures supported by tf.nest.

A MeasuredProcess implementing differentially private aggregation using the supplied DPQuery. Note that client weighting is not

supported for differential privacy so the weight argument to the resulting MeasuredProcess will be ignored.