images.py 文件源码

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

项目:GAN 作者: ilblackdragon 项目源码 文件源码
def linear_discriminator(x, hidden_size, scope='Discriminator', reuse=False):
   with tf.variable_scope(scope, reuse=reuse):
     h0 = tf.tanh(layers.linear(x, hidden_size * 2))
     h1 = tf.tanh(layers.linear(h0, hidden_size * 2))
     h2 = tf.tanh(layers.linear(h1, hidden_size * 2))
     return tf.sigmoid(layers.linear(h2, 1))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号