.type(torch.FloatTensor) should move the tensor to the CPU.
I assume you would like to change the dtype of the tensor without changing the device?
If so, you could use
targs[::self.ns].float()
or
targs[::self.ns].to(torch.float).