--- fairseq/data/lm_context_window_dataset.py
+++ fairseq/data/lm_context_window_dataset.py
@@ -70,7 +70,6 @@
# NOTE we don't shuffle the data to retain access to the previous dataset elements
return np.arange(len(self.dataset))
- @property
def supports_prefetch(self):
return getattr(self.dataset, 'supports_prefetch', False)