title: how to assign the element of tensor from other tensor in tensorflow
body: <p>I want to assign tensor from other tensor. i will give simple demo as followed:</p>
  
  <pre><code>import tensorflow as tf
  
  
  input = tf.constant([1.,2.,3.],dtype=tf.float32)
  
  test = tf.zeros(shape=(3,),dtype = tf.float32)
  
  test[0] = input[0] 
  #tf.assign(test[0],input[0])
  
  with tf.Session() as sess:
      sess.run(test)
  </code></pre>
  
  <p>I want the result of the first element of test can be equal to inputs'</p>
  
  <p>The error is <code>Tensor object does not support item assignment</code>.</p>