Moving data from gpu to host before assigning