lstm.py 文件源码

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

项目:cortex 作者: rdevon 项目源码 文件源码
def __call__(self, x, h0=None, c0=None, condition_on=None):
        if h0 is None:
            h0 = T.alloc(0., x.shape[1], self.dim_h).astype(floatX)

        if c0 is None:
            c0 = T.alloc(0., x.shape[1], self.dim_h).astype(floatX)

        params = self.get_sample_params()

        return self.step_call(x, h0, c0, condition_on, *params)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号