selu.py 文件源码

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

项目:Clairvoyante 作者: aquaskyline 项目源码 文件源码
def selu(x):
    with ops.name_scope('elu') as scope:
        alpha = 1.6732632423543772848170429916717
        scale = 1.0507009873554804934193349852946
        return scale*tf.where(x>=0.0, x, alpha*tf.nn.elu(x))


# (3) initialize weights with stddev sqrt(1/n)
# e.g. use:
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号