Skip to content

Commit

Permalink
Merge pull request #11 from TariqAHassan/fix-not-implemented-error
Browse files Browse the repository at this point in the history
Prevent `__len__()` and `__getitem__()` from being overridden
  • Loading branch information
TariqAHassan committed Jul 10, 2022
2 parents 0b8d020 + de49e50 commit 60c8d7e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions experiments/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ def shape(self) -> tuple[int, ...]:
"""Shape of the data in the dataset."""
raise NotImplementedError()

def __len__(self) -> int:
raise NotImplementedError()

def __getitem__(self, item: int) -> tuple[torch.Tensor, int]:
raise NotImplementedError()


class SMnistDataset(SequenceDataset, MNIST):
NAME: str = "SMNIST"
Expand Down

0 comments on commit 60c8d7e

Please sign in to comment.