parameters: (var, name)
docstring: Attach a lot of summaries to a Tensor (for TensorBoard visualization).
docstring_summary: Attach a lot of summaries to a Tensor (for TensorBoard visualization).
docstring_tokens: Attach a lot of summaries to a Tensor ( for TensorBoard visualization ) .
function: def variable_summaries(var, name):
    """Attach a lot of summaries to a Tensor (for TensorBoard visualization)."""
    with tf.name_scope('summaries'):
      mean = tf.reduce_mean(var)
      tf.scalar_summary('mean/' + name, mean)
      with tf.name_scope('stddev'):
        stddev = tf.sqrt(tf.reduce_mean(tf.square(var - mean)))
      tf.scalar_summary('sttdev/' + name, stddev)
      tf.scalar_summary('max/' + name, tf.reduce_max(var))
      tf.scalar_summary('min/' + name, tf.reduce_min(var))
      tf.histogram_summary(name, var)
function_tokens: def variable_summaries ( var , name ) : with tf . name_scope ( 'summaries' ) : mean = tf . reduce_mean ( var ) tf . scalar_summary ( 'mean/' + name , mean ) with tf . name_scope ( 'stddev' ) : stddev = tf . sqrt ( tf . reduce_mean ( tf . square ( var - mean ) ) ) tf . scalar_summary ( 'sttdev/' + name , stddev ) tf . scalar_summary ( 'max/' + name , tf . reduce_max ( var ) ) tf . scalar_summary ( 'min/' + name , tf . reduce_min ( var ) ) tf . histogram_summary ( name , var )