Hello everyone. I have recently come across a problem.
I have a tensor A and a tensor B. I want to paste B to A with some known position information.
The whole process can be described as follows.

image1511×561 18 KB


image1527×482 18.7 KB


image1369×855 18.9 KB

I read some documentation about scatter_ or index_put, but I don’t know how to deal with this problem, because the position corresponding to each patch is irregular…