First, thank you - it’s a very good beginner notebook to follow (especially after reading the blitz pytorch tutorial).
I have a question about it. currently dev_nb/001a_nn_basics.ipynb says:
A Dataset can be anything that has a
__len__function (called by Python’s standard
lenfunction) and a way of indexing into it.
However, pytorch docs say:
[...]All subclasses should override ``__len__``, that provides the size of the dataset, and ``__getitem__``, supporting integer indexing in range from 0 to len(self) exclusive.
i.e. not just ‘a way’ but it needs to be
__getitem__? or is there another way?