Validates and transforms a computation to generate state.

initialize_computation A computation_impl.ConcreteComputation that should generate initial state for a computation that is compatible with a federated learning system that implements the contract of a backend defined in the backends/mapreduce directory.
grappler_config An optional instance of tf.compat.v1.ConfigProto to configure Grappler graph optimization of the TensorFlow graphs. These options are combined with a set of defaults that aggressively configure Grappler. If the input grappler_config has graph_options.rewrite_options.disable_meta_optimizer=True, Grappler is bypassed.

A computation_base.Computation that can generate state for a computation.

TypeError If the arguments are of the wrong types.