AttributeError: 'Subset' object has no attribute 'sort_key'

the above error will show if apply torchtext.data.BucketIterator.splits to subset. Since subset is not dataset, how can we easily generate loader from subset? thank you very much.