文章预览
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 “”“ …
阅读全文
浏览
评论