title: How to update a value in a 4D Tensorflow Variable by index / indices?
body: <p>Lets's assume I have a 4D tensor and I want to change one element in it:</p>
  
  <pre><code>[[[[0, 0, 0], [0, 0, 0]], [[0, 0, 0], [0, 0, 0]]]]
  </code></pre>
  
  <p>to </p>
  
  <pre><code>[[[[0, 0, 0], [0, 0, 0]], [[0, 1, 0], [0, 0, 0]]]]
  </code></pre>
  
  <p>Any ideas how this can be achieved easily? I am aware of <a href="https://www.tensorflow.org/versions/r1.8/api_docs/python/tf/scatter_update" rel="nofollow noreferrer">tf.scatter_update</a> but it seems quite performance bulky because a whole dimension needs to be changed when doing an update.</p>