Return an example's size as a float or tuple. This value is used when filtering a dataset with ``--max-positions``.
(self, index)
| 52 | return self.size(index) |
| 53 | |
| 54 | def size(self, index): |
| 55 | """Return an example's size as a float or tuple. This value is used when |
| 56 | filtering a dataset with ``--max-positions``.""" |
| 57 | size = min(self._sizes[index], hparams['max_frames']) |
| 58 | return size |
| 59 | |
| 60 | def ordered_indices(self): |
| 61 | """Return an ordered list of indices. Batches will be constructed based |
no outgoing calls
no test coverage detected