Number of hypotheses in the list.
(self)
| 354 | self.worst_score = 1e9 |
| 355 | |
| 356 | def __len__(self): |
| 357 | """ |
| 358 | Number of hypotheses in the list. |
| 359 | """ |
| 360 | return len(self.beams) |
| 361 | |
| 362 | def add(self, hyp: torch.LongTensor, sum_logprobs: float, mems=None): |
| 363 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected