gsn.py 文件源码

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

项目:GSN 作者: peteykun 项目源码 文件源码
def binomial_draw_vec(p_vec, dtype='float32'):
  shape = tf.shape(p_vec)
  return tf.select(tf.less(tf.random_uniform(shape=shape, minval=0, maxval=1, dtype='float32'), p_vec), tf.ones(shape, dtype=dtype), tf.zeros(shape, dtype=dtype))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号