Ah ok, I understand.
Well you could use
a = torch.DoubleTensor(10)
a = a.type(torch.cuda.FloatTensor)

, if you would like to have a single command.
I tried to time it with torch.cuda.synchronize() and got mixed results.
Currently my GPU is busy, so the timing is most likely useless in this state.