original_docstring: Helper to create summaries for activations.
  
    Creates a summary that provides a histogram of activations.
    Creates a summary that measures the sparsity of activations.
  
    Args:
      x: Tensor
    Returns:
      nothing
    
docstring: Helper to create summaries for activations.
  Creates a summary that provides a histogram of activations.
  Creates a summary that measures the sparsity of activations.
docstring_tokens: Helper to create summaries for activations . Creates a summary that provides a histogram of activations . Creates a summary that measures the sparsity of activations .
code: def activation_summary(x):
    """Helper to create summaries for activations.
  
    Creates a summary that provides a histogram of activations.
    Creates a summary that measures the sparsity of activations.
  
    Args:
      x: Tensor
    Returns:
      nothing
    """
    if FLAGS.verbose:
      tf.summary.histogram('activation', x)
      tf.summary.scalar('sparsity', tf.nn.zero_fraction(x))
    else:
      pass
code_tokens: def activation_summary ( x ) : if FLAGS . verbose : tf . summary . histogram ( 'activation' , x ) tf . summary . scalar ( 'sparsity' , tf . nn . zero_fraction ( x ) ) else : pass
short_docstring: Helper to create summaries for activations.
short_docstring_tokens: Helper to create summaries for activations .
comment: """Helper to create summaries for activations.
  
    Creates a summary that provides a histogram of activations.
    Creates a summary that measures the sparsity of activations.
  
    Args:
      x: Tensor
    Returns:
      nothing
    """