(self, offset: Union[int, torch.Tensor],
size: int)
| 194 | return self.dropout(x), pos_emb |
| 195 | |
| 196 | def position_encoding(self, offset: Union[int, torch.Tensor], |
| 197 | size: int) -> torch.Tensor: |
| 198 | return torch.zeros(1, size, self.d_model) |
| 199 | |
| 200 | |
| 201 | class RopePositionalEncoding(PositionalEncoding): |
nothing calls this directly
no outgoing calls
no test coverage detected