dae_no_walkback.py 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号