A tff.program.FederatedContext
backed by an execution context.
Inherits From: FederatedContext
, SyncContext
tff.program.NativeFederatedContext(
context: tff.framework.AsyncExecutionContext
)
Methods
invoke
View source
invoke(
comp: tff.Computation
,
arg: Optional[federated_context.ComputationArgValue]
) -> structure_utils.Structure[NativeValueReference]
Invokes the comp
with the argument arg
.
Raises |
ValueError
|
If the result type of the invoked computation does not contain
only structures, server-placed values, or tensors.
|
Raises |
ValueError
|
If the result type of comp does not contain only structures,
server-placed values, or tensors.
|