Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DataLoader] Add context to NotImplementedErrors in dataset.py (#100667)
Add helpful context message to `NotImplementedError`'s thrown by Dataset and IterableDataset, reminding users that they must implement `__getitem__`/`__iter__` in subclasses. Currently, users are presented with a bare `NotImplementedError` without describing the remedy. Pull Request resolved: #100667 Approved by: https://github.com/NivekT
- Loading branch information