Not using the current code.
It looks like you are trying to set some patches of en empty tensor to some input images.
Could you explain your workflow a bit so that we could maybe create some (pseudo-)code for it?