distributions.py 文件源码

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

项目:multimodal_varinf 作者: tmoer 项目源码 文件源码
def gumbel_softmax_sample(logits, temperature): 
  """ Draw a sample from the Gumbel-Softmax distribution"""
  y = tf.add(logits,sample_gumbel(tf.shape(logits)))
  return tf.nn.softmax( tf.div(y, temperature))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号