Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | List of all members
torch.utils.data.dataset.Dataset Class Reference
Inheritance diagram for torch.utils.data.dataset.Dataset:
torch.utils.data.dataset.ConcatDataset torch.utils.data.dataset.Subset torch.utils.data.dataset.TensorDataset

Public Member Functions

def __getitem__ (self, index)
 
def __len__ (self)
 
def __add__ (self, other)
 

Detailed Description

An abstract class representing a Dataset.

All other datasets should subclass it. 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.

Definition at line 8 of file dataset.py.


The documentation for this class was generated from the following file: