Thank you for your reply.
I apply

Conv2D
maxpool2D
Cov2D
[x,indices] = maxpool2D     <-got these indices
multiple FC layers
y = RNN (convert the output to the size of x)
output_1 = unpool(y,indices)

How can I check, If I have overlapping indices?
If you want, I can give an exemplary script.