Train doesn't work, no response at all!

I’m learning “Dive into deep learning” book by translating mxnet code to pytorch.

I have translated GAN successfully.

But I’m stuck almost two weeks about DCGAN

There isn’t any bugs poping up, but no response to my train.

My code:

Can anyone help me? Thanks in advance.
You maybe need to contrast mxnet code with my pytorch code.

Fix now.