models.py 文件源码

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

项目:chainer-began 作者: hvy 项目源码 文件源码
def __call__(self, x):
        h = F.reshape(self.l0(x), ((x.shape[0],) + self.embed_shape))

        for i in range(self.n_blocks):
            for j in range(self.block_size):
                h = F.elu(getattr(self, 'c{}'.format(i*j+j))(h))
            if i < self.n_blocks - 1:
                h = F.unpooling_2d(h, ksize=2, stride=2, cover_all=False)

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


问题


面经


文章

微信
公众号

扫码关注公众号