def weight_variable(shape):
    'weight_variable generates a weight variable of a given shape.'
    initial = tf.truncated_normal(shape, stddev=0.1)
    return tf.Variable(initial, name='W')
weight_variable generates a weight variable of a given shape.
def weight_variable(shape):
    
    initial = tf.truncated_normal(shape, stddev=0.1)
    return tf.Variable(initial, name='W')