fix mroe bugs
This commit is contained in:
parent
d9ad2bb847
commit
7eee65dc9c
3
main.py
3
main.py
|
@ -178,7 +178,8 @@ for epoch in range(opt.niter):
|
||||||
real_cpu, _ = data
|
real_cpu, _ = data
|
||||||
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