tff.framework.FederatingStrategy

The abstract interface federating strategies must implement.

A FederatingStrategy defines the logic for how a FederatingExecutor handles federated types and federated intrinsics, specificially:

  • which federated intrinsics are implemented
  • how federated types and federated intrinsics are implemented
  • how federated values are represented in the execution stack
  • how work is delegated to the target executors
  • which placements are implemented

executor A FederatingExecutor to use to handle unplaced types, computations, and processing.

TypeError If executor is not a FederatingExecutor.

Methods

close

View source

Release resources associated with this strategy, if any.

compute_federated_aggregate

View source

Returns an embedded call for a federated aggregate.

compute_federated_apply

View source

Returns an embedded call for a federated apply.

compute_federated_broadcast

View source

Returns an embedded call for a federated broadcast.

compute_federated_collect

View source

Returns an embedded call for a federated collect.

compute_federated_eval_at_clients

View source

Returns an embedded call for a federated eval at clients.

compute_federated_eval_at_server

View source

Returns an embedded call for a federated eval at server.

compute_federated_intrinsic

View source

Returns an embedded call for a federated intrinsic.

Args
uri The URI of an intrinsic to embed.
arg An optional embedded argument of the call, or None if no argument is supplied.

compute_federated_map

View source

Returns an embedded call for a federated map.

compute_federated_map_all_equal

View source

Returns an embedded call for a federated map all equal.

compute_federated_mean

View source

Returns an embedded call for a federated mean.

compute_federated_reduce

View source

Returns an embedded call for a federated reduce.

compute_federated_secure_sum

View source

Returns an embedded call for a federated secure sum.

compute_federated_sum

View source

Returns an embedded call for a federated sum.

compute_federated_value

View source

Returns an embedded value for a federated type.

Args
value An object to embed in the executor.
type_signature A tff.Type, the type of value.

compute_federated_value_at_clients

View source

Returns an embedded call for a federated value at clients.

compute_federated_value_at_server

View source

Returns an embedded call for a federated value at server.

compute_federated_weighted_mean

View source

Returns an embedded call for a federated weighted mean.

compute_federated_zip_at_clients

View source

Returns an embedded call for a federated zip at clients.

compute_federated_zip_at_server

View source

Returns an embedded call for a federated zip at server.

ingest_value

View source