runtimeerror: found dtype long but expected float
·
Error Note
- 전체 에러 문구 runtimeerror: found dtype long but expected float => 데이터 타입이 맞지 않아 생기는 에러입니다. - 해결 방법 .to() 함수를 사용해 데이터 타입을 변경해주면 됩니다. my_tensor.to(torch.float32)