How to implement a similar task if the tensor is expended one more dimension?
X (B, S, H, W, C)
I (B, S, N, 2)
S (B, S, N, C)
The objective is X[i, j, I[i, j, k, 0], I[i, j, k, 1]] = S[i, j, k].
Thanks.