Torch method for processing logits.
(self, input_ids: torch.LongTensor, scores: torch.FloatTensor)
| 393 | """Abstract base class for all logit processors that can be applied during generation.""" |
| 394 | |
| 395 | def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor) -> torch.FloatTensor: |
| 396 | """Torch method for processing logits.""" |
| 397 | raise NotImplementedError( |
| 398 | f"{self.__class__} is an abstract class. Only classes inheriting this class can be called." |
| 399 | ) |
| 400 | |
| 401 | |
| 402 | class LogitsProcessorList(list): |
nothing calls this directly
no outgoing calls
no test coverage detected