I am using a 4-D tensor of shape=(N, 2, 127, 52)
I used:
tf.keras.backend.repeat_elements(tensor, 2, axis=3)
This duplicate the last axis size from 52 to 104 by repeating each value:
shape=(N, 2, 127, 104)
Now I want to the same but only with the last 10 elements from the third axis having now:
shape=(N, 2, 127, 114)
I am also looking how to add an extra "column" by adding a zero vector in the middle of the last axis tensor resulting:
shape=(N, 2, 127, 115)
How can I do this?