|View source on GitHub|
tff.program.ReleaseManager that releases values to a file system.
tff.program.SavedModelFileReleaseManager( root_dir: Union[str, os.PathLike], prefix: str = 'release_' )
tff.program.SavedModelFileReleaseManager is a utility for releasing values
from a federated program to a file system and is used to release values from
platform storage to customer storage in a federated program.
Values are released to the file system using the SavedModel (see
tf.saved_model) format. When the value is released, if the value is a value
reference or a structure containing value references, each value reference is
materialized. The value is then flattened and released using the SavedModel
format. The structure of the value is discarded.
See https://www.tensorflow.org/guide/saved_model for more infromation about the SavedModel format.
||A path on the file system to save program state. If this path does not exist it will be created.|
||A string to use as the prefix for filenames.|
release( value: Any, key: int )
value from a federated program.
||A materialized value, a value reference, or a structure of materialized values and value references representing the value to release.|
An integer used to reference the released