RuntimeError: sin_vml_cpu not implemented for 'Long'

whenever I’m trying sin in a tensor , it’s showing this error …

I’m guessing you created the tensor incorrectly.

Try changing the dtype to float (whatevernameforyourtensor.float())