Google I / O, 18-20 Mayıs'ta geri dönüyor! Yer ayırın ve programınızı oluşturun Şimdi kaydolun

tff.federated_apply

Applies a given function to a federated value on tff.SERVER.

Deprecation warning: tff.federated_apply() is deprecated, use tff.federated_map() instead.

fn A function to apply to the member content of arg on the tff.SERVER. The parameter of this function must be of the same type as the member constituent of arg.
arg A value of a TFF federated type placed at the tff.SERVER, and with the all_equal bit set.

A federated value on the tff.SERVER that represents the result of applying fn to the member constituent of arg.

TypeError If the arguments are not of the appropriate types.