Thanks for the link.   Umm… did ‘r’ above initialise?
<snip>
>>> r

 0.2959
 0.1837
 0.4290
[torch.cuda.FloatTensor of size 3 (GPU 0)]
>>>

It does appear to have created a torch.cuda.FLoatTensor.   Does this mean is ‘working’?
Cheers,
Michael.