The introduction is empty
Posts
Q&A
runtime error : Found dtype Long but expected Float
์ด๋ฏธ ๋ง์ด ๋ฆ์ ๊ฒ ๊ฐ์ง๋ง...์ ๊ฐ ์ฌ๋ฆฐ ๋ต๊ธ ์ฐธ๊ณ ํด๋ณด์๊ฒ ์ด์? https://www.inflearn.com/questions/87541
- 0
- 1
- 356
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
- 1.5K




