GAN-tutorial icon indicating copy to clipboard operation
GAN-tutorial copied to clipboard

Train Backward 과정에서 오류

Open Moog303 opened this issue 7 years ago • 2 comments

D_loss.backward() 에서 'one of the variables needed for gradient computation has been modified by an inplace operation' 라는 runtime error가 발생합니다. 어떻게 해결하면 될까요?

Moog303 avatar Oct 19 '18 06:10 Moog303

Generator와 Discriminator class에서 LeakyReLU와 Dropout의 parameter인 inplace = True를 모두 지우면 됩니다.

bossm0n5t3r avatar Apr 22 '19 09:04 bossm0n5t3r

만약 data[1] 부분에서 다시 오류가 발생하면, data[1]->data로 바꿔주시면 됩니다

physhik avatar Nov 02 '19 01:11 physhik