When I move the block of code into the forward function of my network, I do not have to clone. I am not sure why though (Pytorch doesn’t complain). That’s why I have the question if cloning will cause gradient to be computed differently. Within the network, I do not have to clone. Outside of it, I have to.