Hi Ptrblck,
I am computing this commnad
 PP3=(P1*P2).view(-1).sum().item()

error is (I run this code on cpu does not work. I change it to GPU and )
It give me this error. I try all option to change the (P1*P2) to the double but it gave me float again., Would you please help me with that?