Sends selected values from a server database to clients.
client_keys, max_key, server_val, select_fn
Used in the notebooks
tff.CLIENTS-placed one-dimensional fixed-size
used to select values from
database to load for each client.
int32 which is guaranteed to be greater
than any of
client_keys. Lower values may permit more optimizations.
tff.SERVER-placed value used as an input to
A function which accepts
server_val and a
int32 client key
and returns a value to be sent to the client.
select_fn should be
tff.CLIENTS-placed sequences of values returned from
select_fn. In each
sequence, the order of values will match the order of keys in the
client_keys tensor. For example, a client with keys
[1, 2, ...] will receive a sequence of values
[select_fn(server_val, 1), select_fn(server_val, 2), ...].
client_keys is not of type
max_key is not of type
server_val is not a
server-placed value (
S@SERVER), or if
select_fn is not a function
<S, int32> -> RESULT.