An interface for releasing values from a federated program.

A tff.program.ReleaseManager is used to release values from platform storage to customer storage in a federated program.



View source

Releases value from a federated program.

An implementation of this interface should be specific about the types of value and key for this method and should document how the key will be used. This allows a federated program to understand how to create a key for the value before it is released. For example, a tff.program.ReleaseManager that releases metrics keyed by a strictly increasing integer might specify a value type of Mapping[str, ReleasableValue] and a key type of int.

value A tff.program.ReleasableStructure to release.
key A value used to reference the released value.