mnist_gan.py 文件源码

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

项目:deep-learning 作者: ljanyst 项目源码 文件源码
def __discriminator(self, x, scope, reuse, hidden_units):
        with tf.variable_scope(scope, reuse=reuse):
            h1 = tf.layers.dense(x, hidden_units, activation=None)
            h1 = LeakyReLU(h1, self.alpha)

            logits = tf.layers.dense(h1, 1, activation=None)
            out    = tf.sigmoid(logits)

        return out, logits

    #---------------------------------------------------------------------------
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号