title: Set initial value of a tf.Variable Python/TensorFlow
body: <p>I have this function:</p>
  
  <pre><code>def new_weights(shape):
      return tf.Variable(tf.truncated_normal(shape, stddev=0.05))
  </code></pre>
  
  <p>And I call it like this, for example:</p>
  
  <pre><code># shape = [filter_size, filter_size, num_filters, num_input_channels]
  shape = [1, 1, 8, 1]
  
  weights = new_weights(shape)
  </code></pre>
  
  <p>I want to initialize my weights with the following values:</p>
  
  <pre><code>weights = [1, 2, 3, 4, 5, 6, 7, 8]
  </code></pre>
  
  <p>And after initializing it with these values, I want it to be updated (trainable).</p>
  
  <p>How do I do this?</p>