1、gan 训练g d 网络时loss回传两次的问题。
https://www.twblogs.net/a/5b7e26eb2b717768385597ae
2、loss_D_fake = self.criterion_GAN(pred_fake, target_fake.expand_as(pred_fake))
3、膨胀卷积计算公式:
(1)膨胀后的卷积核尺寸 = 膨胀系数 × (原始卷积核尺寸-1)+ 1
(2)注意padding,tf里有padding = ‘same’;
2019-08-06 12:50:44.203698: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library ‘libcudart.so.10.0’; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :/usr/local/cuda-9.0/lib64
原因是tensorflow版本问题没有找到cuda库