I have the following code
aa = tf.zeros([10, 4, 240, 240, 1])
aa[:, :, 10:20, 5:15, :] = 1
However, this does not work.
I know that numpy arrays allow specific elements to be changed using the notation aa[:, :, 10:20, 5:15, :] = 1
. How would I do this in tensorflow?