inflearn logo
Khóa học

Khóa học

Chia sẻ kiến thức

Bài viết của gibiee0431

gibiee0431 gibiee0431

@gibiee0431

Số lượng đánh giá đã viết
3
Xếp hạng trung bình
4.0

Bài viết 2

Hỏi & Đáp

runtime error : Found dtype Long but expected Float

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

Lượt thích
0
Số bình luận
1
Lượt xem
411

Hỏi & Đáp

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()는 빼셔야 하구요.

Lượt thích
0
Số bình luận
3
Lượt xem
1556