__init__.py 文件源码

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

项目:tensorflow-infogan 作者: JonathanRaiman 项目源码 文件源码
def discriminator_forward(img,
                          network_description,
                          is_training,
                          reuse=None,
                          name="discriminator",
                          use_batch_norm=True,
                          debug=False):
    with tf.variable_scope(name, reuse=reuse):
        out = run_network(img,
                          network_description,
                          is_training=is_training,
                          use_batch_norm=use_batch_norm,
                          debug=debug)
        out = layers.flatten(out)
        prob = layers.fully_connected(
            out,
            num_outputs=1,
            activation_fn=tf.nn.sigmoid,
            scope="prob_projection"
        )

    return {"prob":prob, "hidden":out}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号