For tensor types of Long, Byte, and Integer, torch.dot function does not work when they are in GPU.
On CPU, there is no problem at all.
As I couldn’t find any written restriction of running torch.dot function in GPU, I am asking here.

I found that for Float tensors, torch.dot works in GPU.

>>> a = b =torch.LongTensor([1,2,3])
>>> a.dot(b)
14
>>> a=a.cuda();b=b.cuda()
>>> a.dot(b)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'torch.cuda.LongTensor' object has no attribute 'dot'