(self, x)
| 13 | self.dropout = nn.Dropout(dropout) |
| 14 | |
| 15 | def forward(self, x): |
| 16 | residual = x |
| 17 | output = x.transpose(1, 2) |
| 18 | output = self.w_2(F.relu(self.w_1(output))) |
| 19 | output = output.transpose(1, 2) |
| 20 | output = self.dropout(output) |
| 21 | output = self.layer_norm(output + residual) |
| 22 | return output |
| 23 | |
| 24 | |
| 25 |
nothing calls this directly
no outgoing calls
no test coverage detected