A Python callable with a single argument, which is expected to
be a tf.Tensor of shape and dtype to be encoded. The function must
return a tensor_encoding.core.SimpleEncoder, which expects a tf.Tensor
with compatible type as the input to its encode method.
A MeasuredProcess for encoding and summing the weights of model created by
If model_fn or encoder_fn are not callable objects.