File size: 273 Bytes
aa7fb02
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import torch
import torch.nn as nn
import torch.nn.functional as F

from pytorch_pretrained_bert.modeling import BertModel


class AttDes(nn.Module):
    def __init__(self, args):
        super(AttDes, self).__init__()
        hidden_dim = args.AD_hidden_dim