(self, x)
| 212 | self.register_buffer('pe', pe) |
| 213 | |
| 214 | def forward(self, x): |
| 215 | x = x + self.pe[:, :x.size(1)] |
| 216 | return self.dropout(x) |
| 217 | |
| 218 | |
| 219 | # adaptive 2D positional encoding |
nothing calls this directly
no outgoing calls
no test coverage detected