examples/legacy/seq2seq/utils.py/SortishSampler/__init__
class SortishSampler:    def __init__(self, data, batch_size, shuffle=True):
        self.data, self.bs, self.shuffle = data, batch_size, shuffle