parameters: (export_outputs, head_name)
docstring: Extracts the default export output from the given export_outputs dict.
docstring_summary: Extracts the default export output from the given export_outputs dict.
docstring_tokens: Extracts the default export output from the given export_outputs dict .
function: def _default_export_output(export_outputs, head_name):
    """Extracts the default export output from the given export_outputs dict."""
    if len(export_outputs) == 1:
      return next(six.itervalues(export_outputs))
    for k, v in six.iteritems(export_outputs):
      if k == _DEFAULT_SERVING_KEY:
        return v
    raise ValueError(
        '{} did not specify default export_outputs. '
        'Given: {} '
        'Suggested fix: Use one of the heads in tf.contrib.estimator, or include '
        'key {} in export_outputs.'.format(
            head_name, export_outputs, _DEFAULT_SERVING_KEY))
function_tokens: def _default_export_output ( export_outputs , head_name ) : if len ( export_outputs ) == 1 : return next ( six . itervalues ( export_outputs ) ) for k , v in six . iteritems ( export_outputs ) : if k == _DEFAULT_SERVING_KEY : return v raise ValueError ( '{} did not specify default export_outputs. ' 'Given: {} ' 'Suggested fix: Use one of the heads in tf.contrib.estimator, or include ' 'key {} in export_outputs.' . format ( head_name , export_outputs , _DEFAULT_SERVING_KEY ) )