RuntimeError('dot : expected both vectors to have same dtype, but found Double and Float
I am trying to perform this operation:
L_c += 1 - torch.abs(torch.dot(nuNormalized, Nu))

where:

nuNormalized -&gt; tensor([ 0.3790, -0.4208,  0.8242], dtype=torch.float64)


Nu -&gt; tensor([-0.9961, -0.9961, -0.9961], device='cuda:0')

I am getting this error:

(&lt;class 'RuntimeError'&gt;, RuntimeError('dot : expected both vectors to have same dtype, but found Double and Float',), &lt;traceback object at 0x7f4d276155c8&gt;)

Any suggestions please? Thanks!

cast nuNormalized to float from double.
also you might consider moving both to the same device.
