convnet_cuda32.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:GRAN 作者: jiwoongim 项目源码 文件源码
def propagate(self, X, num_train=None, atype='relu'):
        """Propagate, return binary output of fake/real image"""     
        image_shape0=[X.shape[0], self.num_channels, self.D, self.D]
        ConX = X.reshape(image_shape0)
        H0 = self.L1.conv(ConX, atype=atype)
        H1 = self.L2.conv(H0, atype=atype)
        H2 = self.L3.conv(H1, atype=atype) 
        H2 = H2.flatten(2)

        H3 = activation_fn_th(T.dot(H2, self.W) + self.hbias, atype='tanh')
        y  = T.nnet.sigmoid(T.dot(H3, self.W_y))    

        return y
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号