View source on GitHub |
Evaluates a federated computation at placement
, returning the result.
tff.federated_eval(
fn, placement
)
Used in the notebooks
Used in the tutorials |
---|
Args | |
---|---|
fn
|
A no-arg TFF computation. |
placement
|
The desired result placement (either tff.SERVER or
tff.CLIENTS ).
|
Returns | |
---|---|
A federated value with the given placement placement .
|
Raises | |
---|---|
TypeError
|
If the arguments are not of the appropriate types. |