urnn_cell.py 文件源码

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

项目:urnn 作者: Rand0mUsername 项目源码 文件源码
def modReLU(z, bias): # relu(|z|+b) * (z / |z|)
    norm = tf.abs(z)
    scale = tf.nn.relu(norm + bias) / (norm + 1e-6)
    scaled = tf.complex(tf.real(z)*scale, tf.imag(z)*scale)
    return scaled

###################################################################################################333

# 4k / 7k trainable params
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号