fix mroe bugs
This commit is contained in:
parent
d9ad2bb847
commit
7eee65dc9c
1
main.py
1
main.py
|
@ -179,6 +179,7 @@ for epoch in range(opt.niter):
|
||||||
netD.zero_grad()
|
netD.zero_grad()
|
||||||
batch_size = real_cpu.size(0)
|
batch_size = real_cpu.size(0)
|
||||||
|
|
||||||
|
input.resize_as_(real_cpu).copy_(real_cpu)
|
||||||
inputv = Variable(input)
|
inputv = Variable(input)
|
||||||
|
|
||||||
errD_real = netD(inputv)
|
errD_real = netD(inputv)
|
||||||
|
|
Loading…
Reference in New Issue