PyTorch DataLoader error- AttributeError: 'DataLoader' object has no attribute 'generator'

Just updated to PyTorch 1.6 and got this error while looping over a dataloader object:
AttributeError: ‘DataLoader’ object has no attribute ‘generator’

The loop works on PyTorch 1.5

Any ideas?

The generator attribute was added ~3months ago in this PR. Could you post the complete stack trace with a minimal code snippet, which would reproduce this issue?