model.py 文件源码

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

项目:real-nvp 作者: taesung89 项目源码 文件源码
def inv_model_spec(y):
  # construct inverse pass for sampling
  shape = final_latent_dimension
  z = tf.reshape(y, [-1, shape[1], shape[2], shape[3]])
  y = None
  for layer in reversed(layers):
    y,z = layer.backward(y,z)

  # inverse logit
  x = tf.inv(1 + tf.exp(-y))

  return x
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号