    def size(self, index):
        """Return an example's size as a float or tuple. This value is used when
        filtering a dataset with ``--max-positions``."""
        if self.pad:
            return self.sizes[index]
        return min(self.sizes[index], self.max_sample_size)
Return an example's size as a float or tuple. This value is used when
filtering a dataset with ``--max-positions``.
fairseq/data/audio/raw_audio_dataset.py