示例#1
0
 def __init__(self, d_model: int, d_ff: int, dropout: float = 0.1):
     super().__init__()
     self.ffn = FeedForward(d_model, d_ff, dropout, nn.GELU())
示例#2
0
 def __init__(self, d_model: int, d_ff: int, dropout: float = 0.1):
     super().__init__()
     self.ffn = FeedForward(d_model, d_ff, dropout, nn.Identity(), True,
                            False, False, False)