TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now



Defined in eval_saved_model/

Build a eval_input_receiver_fn expecting fed tf.Examples.

Creates a eval_input_receiver_fn that expects a serialized tf.Example fed into a string placeholder. The function parses the tf.Example according to the provided feature_spec, and returns all parsed Tensors as features.


  • feature_spec: A dict of string to VarLenFeature/FixedLenFeature.
  • label_key: The key for the label column in the feature_spec. Note that the label must be part of the feature_spec. If None, does not pass a label to the EvalInputReceiver (note that label_key must be None and not simply the empty string for this case).


A eval_input_receiver_fn suitable for use with TensorFlow model analysis.