att_s2s.py 文件源码

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

项目:NlpUtil 作者: trtd56 项目源码 文件源码
def __init__(self, n_layer, n_unit, n_vocab):
        super(AttentionNet, self).__init__(
            l1 = L.Linear(n_unit, n_unit),
            l2 = L.Linear(n_unit, n_unit),
            fnn = L.Linear(n_unit, 1),
            lstm = L.LSTM(n_unit, n_unit),
            dec = L.Linear(n_unit, n_vocab),
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号