model_ops.py 文件源码

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

项目:recurrent-entity-networks 作者: jimfleming 项目源码 文件源码
def prelu(features, alpha, scope=None):
    """
    Implementation of [Parametric ReLU](https://arxiv.org/abs/1502.01852) borrowed from Keras.
    """
    with tf.variable_scope(scope, 'PReLU'):
        pos = tf.nn.relu(features)
        neg = alpha * (features - tf.abs(features)) * 0.5
        return pos + neg
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号