7633129ba8d5f0e28bd6b6d6027b14352482ef31,fairseq/data/backtranslation_dataset.py,BacktranslationDataset,supports_prefetch,#BacktranslationDataset#,171
Before Change
@property
def supports_prefetch(self):
return self.tgt_dataset.supports_prefetch()
def prefetch(self, indices):
return self.tgt_dataset.prefetch(indices)
After Change
@property
def supports_prefetch(self):
return getattr(self.tgt_dataset, "supports_prefetch", False)
def prefetch(self, indices):
return self.tgt_dataset.prefetch(indices)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: elbayadm/attn2d
Commit Name: 7633129ba8d5f0e28bd6b6d6027b14352482ef31
Time: 2019-01-04
Author: myleott@fb.com
File Name: fairseq/data/backtranslation_dataset.py
Class Name: BacktranslationDataset
Method Name: supports_prefetch
Project Name: pytorch/fairseq
Commit Name: 7633129ba8d5f0e28bd6b6d6027b14352482ef31
Time: 2019-01-04
Author: myleott@fb.com
File Name: fairseq/data/transform_eos_dataset.py
Class Name: TransformEosDataset
Method Name: supports_prefetch