No it says nuNormalized is already a float. I was talking about just Nu. Looking at it now though what is the type of L_c that might be the problem. If that is a double then you may have to do
L_c += 1 - torch.abs(torch.dot(nuNormalized, Nu)).double()