recurrent.py 文件源码

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

项目:extkeras 作者: andhus 项目源码 文件源码
def preprocess_input(self, inputs, training=None):
        if self.implementation == 0:
            cell_mask = inputs[:, :, -self.units:]
            inputs = inputs[:, :, :-self.units]

            inputs_prep = super(CellMaskedLSTM, self).preprocess_input(
                inputs,
                training
            )
            return K.concatenate([inputs_prep, cell_mask], axis=2)
        else:
            return inputs
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号