(self, x, mask)
| 105 | self.dropout_2 = nn.Dropout(dropout) |
| 106 | |
| 107 | def forward(self, x, mask): |
| 108 | x2 = self.norm_1(x) |
| 109 | x = x + self.dropout_1(self.attn(x2, x2, x2, mask)) |
| 110 | x2 = self.norm_2(x) |
| 111 | x = x + self.dropout_2(self.ff(x2)) |
| 112 | return x |
| 113 | |
| 114 | |
| 115 |
nothing calls this directly
no outgoing calls
no test coverage detected