title: How to do slice assignment in Tensorflow 2.0
body: <p>I am currently trying to perform a TensorFlow slice assignment similar to this PyTorch code.</p>
  <pre><code>input_seq[1:, :] = torch.from_numpy(stroke[:-1, :])
  </code></pre>
  <p>A plain item assignment like the above does not work for TensorFlow and gives the following error.</p>
  <pre><code>TypeError: 'tensorflow.python.framework.ops.EagerTensor' object does not support item assignment.
  </code></pre>
  <p>Previous solutions for the same problem are quite dated using older versions of TensorFlow. I would greatly appreciate any help regarding how to tackle the same.</p>