seq2seq_mp1.py 文件源码

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

项目:chainermn 作者: chainer 项目源码 文件源码
def translate(self, xs, max_length=100):
        with chainer.no_backprop_mode():
            with chainer.using_config('train', False):
                xs = [x[::-1] for x in xs]
                exs = sequence_embed(self.embed_x, xs)

                # Encode input sequence and send hidden stats to decoder.
                self.mn_encoder(exs)

        # Encoder does not return anything.
        # All evaluation will be done in decoder process.
        return None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号