parameters: (node_def)
return_statement: return summary_description
docstring: Given a TensorSummary node_def, retrieve its SummaryDescription.
  
    When a Summary op is instantiated, a SummaryDescription of associated
    metadata is stored in its NodeDef. This method retrieves the description.
  
    Args:
      node_def: the node_def_pb2.NodeDef of a TensorSummary op
  
    Returns:
      a summary_pb2.SummaryDescription
  
    Raises:
      ValueError: if the node is not a summary op.
  
    @compatibility(eager)
    Not compatible with eager execution. To write TensorBoard
    summaries under eager execution, use `tf.contrib.summary` instead.
    @end_compatibility
docstring_summary: Given a TensorSummary node_def, retrieve its SummaryDescription.
docstring_tokens: Given a TensorSummary node_def retrieve its SummaryDescription .
function: def get_summary_description(node_def):
    """Given a TensorSummary node_def, retrieve its SummaryDescription.
  
    When a Summary op is instantiated, a SummaryDescription of associated
    metadata is stored in its NodeDef. This method retrieves the description.
  
    Args:
      node_def: the node_def_pb2.NodeDef of a TensorSummary op
  
    Returns:
      a summary_pb2.SummaryDescription
  
    Raises:
      ValueError: if the node is not a summary op.
  
    @compatibility(eager)
    Not compatible with eager execution. To write TensorBoard
    summaries under eager execution, use `tf.contrib.summary` instead.
    @end_compatibility
    """
  
    if node_def.op != 'TensorSummary':
      raise ValueError("Can't get_summary_description on %s" % node_def.op)
    description_str = _compat.as_str_any(node_def.attr['description'].s)
    summary_description = SummaryDescription()
    _json_format.Parse(description_str, summary_description)
    return summary_description
function_tokens: def get_summary_description ( node_def ) : if node_def . op != 'TensorSummary' : raise ValueError ( "Can't get_summary_description on %s" % node_def . op ) description_str = _compat . as_str_any ( node_def . attr [ 'description' ] . s ) summary_description = SummaryDescription ( ) _json_format . Parse ( description_str , summary_description ) return summary_description