inflearn logo
講義

講義

知識共有

gibiee0431さんの投稿

gibiee0431 gibiee0431

@gibiee0431

レビュー投稿数
3
平均評価
4.0

投稿 2

Q&A

runtime error : Found dtype Long but expected Float

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

いいね数
0
コメント数
1
閲覧数
411

Q&A

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
閲覧数
1556