Your data as well as your model should be both on the GPU.
To transfer both you can use something like this:
model = model.to('cuda')
data = data.to('cuda')
target = target.to('cuda')

You don’t need to push each layer onto the GPU. The model will push all it’s layers to the device.