Basically. you would have to push the model and data onto the GPU using .to(device), so that all operations will take place on the device.
Have a look at the Training a classifier tutorial 3 to see how and where to do it.