TerryChan' Blog

文章

标签

喜欢

标签: attention

共找到 2 篇相关文章

第 1 页,共 1 页

文章预览

LSTM+Attention demo
2023年08月22日 431 字

``` #!/usr/bin/python # -*- coding: utf-8 -*- import torch from torch import nn import torch.nn.functional as F # 定义 单双向LSTM 模型 class Rnn(nn.Module): ”“” 双向lstm “”“ …

阅读全文
浏览 评论