(self, x)
| 83 | self.register_buffer('pe', pe) |
| 84 | |
| 85 | def forward(self, x): |
| 86 | # not used in the final model |
| 87 | x = x + self.pe[:x.shape[0], :] |
| 88 | return self.dropout(x) |
| 89 | |
| 90 | |
| 91 | # only for ablation / not used in the final model |
nothing calls this directly
no outgoing calls
no test coverage detected