inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

지비님의 게시글

지비 지비

@gibiee0431

수강평 작성수
3
평균평점
4.0

게시글 2

질문&답변

runtime error : Found dtype Long but expected Float

이미 많이 늦은 것 같지만...제가 올린 답글 참고해보시겠어요? https://www.inflearn.com/questions/87541

좋아요수
0
댓글수
1
조회수
398

질문&답변

runtime error : Found dtype Long but expected Float

output, label 둘 다 추가해주니 실행되네요. --------------------------------------------------------------------------- output = netD(real_cpu).view(-1) (추가) output = output.type(torch.FloatTensor).cuda() (추가) label = label.type(torch.FloatTensor).cuda() errD_real = criterion(output, label) --------------------------------------------------------------------------- cuda 안 쓰시면 뒤에 .cuda()는 빼셔야 하구요.

좋아요수
0
댓글수
3
조회수
1546