(self, hidden_states)
| 38 | ) |
| 39 | |
| 40 | def forward(self, hidden_states): |
| 41 | # [s, b, 4hp] |
| 42 | intermediate_parallel = self.dense_h_to_4h(hidden_states) |
| 43 | intermediate_parallel = self.activation_func(intermediate_parallel) |
| 44 | # [s, b, h] |
| 45 | output = self.dense_4h_to_h(intermediate_parallel) |
| 46 | |
| 47 | return output |
| 48 | |
| 49 | |
| 50 | class SelfAttention(paddle.nn.Layer): |
nothing calls this directly
no outgoing calls
no test coverage detected