I wrote a simple sinnpet on torch.diag, but it throws error, what’s the difference between torch.cuda.DoubleTensor and torch.cuda.DoubleTensor source ?

Screenshot from 2017-10-26 11-53-59.png804×219 30.7 KB