tf_qrnn.py 文件源码

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

项目:tensorflow_qrnn 作者: icoxfog417 项目源码 文件源码
def _step(self, f, z, o):
        with tf.variable_scope("fo-Pool"):
            # f,z,o is batch_size x size
            f = tf.sigmoid(f)
            z = tf.tanh(z)
            o = tf.sigmoid(o)
            self.c = tf.mul(f, self.c) + tf.mul(1 - f, z)
            self.h = tf.mul(o, self.c)  # h is size vector

        return self.h
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号