Hi,
My tensors of a and b have size of (N, C, H, W) and I want to crop (h, w) crops from tensor a and patch it to the associated positions to tensor b. The problem is the I defined N different (h, w) patches which has different positions and sizes. That means I need to copy a[0, :, h0_0:h0_1, w0_0, w0_1] to b[0, :, h0_0:h0_1, w0_0, w0_1], and copy a[1, :, h1_0, h1_1, w1_0:w1_1] to b[1, :, h1_0, h1_1, w1_0:w1_1], and a[2, :, h2_0:h2_1, w2_0:w2_1] to b[2, :, h2_0:h2_1, w2_0:w2_1], and so on.
Would you please tell me how can I do this with pytorch ?