tff.learning.templates.build_broadcast_process
Stay organized with collections
Save and categorize content based on your preferences.
Builds DistributionProcess
directly broadcasting values.
tff.learning.templates.build_broadcast_process(
value_type: tff.types.Type
)
Used in the notebooks
The created process has empty state and reports no measurements.
Args |
value_type
|
A non-federated tff.Type of value to be broadcasted.
|
Returns |
A DistributionProcess for broadcasting value_type .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-20 UTC.
[null,null,["Last updated 2024-09-20 UTC."],[],[],null,["# tff.learning.templates.build_broadcast_process\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |\n\nBuilds `DistributionProcess` directly broadcasting values. \n\n tff.learning.templates.build_broadcast_process(\n value_type: ../../../tff/types/Type\n )\n\n### Used in the notebooks\n\n| Used in the tutorials |\n|-----------------------------------------------------------------------------------------------------------------|\n| - [Composing Learning Algorithms](https://www.tensorflow.org/federated/tutorials/composing_learning_algorithms) |\n\nThe created process has empty state and reports no measurements.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------------|-----------------------------------------------------------------------------------|\n| `value_type` | A non-federated [`tff.Type`](../../../tff/types/Type) of value to be broadcasted. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `DistributionProcess` for broadcasting `value_type`. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|-------------|-------------------------------------------------------------------------------------------|\n| `TypeError` | If `value_type` contains a [`tff.types.FederatedType`](../../../tff/types/FederatedType). |\n\n\u003cbr /\u003e"]]