Public Member Functions | |
UncopyableDataset (const std::string &) | |
UncopyableDataset (UncopyableDataset &&)=default | |
UncopyableDataset & | operator= (UncopyableDataset &&)=default |
UncopyableDataset (const UncopyableDataset &)=delete | |
UncopyableDataset & | operator= (const UncopyableDataset &)=delete |
int | get (size_t index) override |
Returns the example at the given index. | |
torch::optional< size_t > | size () const override |
Returns the size of the dataset, or an empty optional if it is unsized. | |
Public Member Functions inherited from torch::data::datasets::Dataset< UncopyableDataset, int > | |
std::vector< ExampleType > | get_batch (ArrayRef< size_t > indices) override |
Returns a batch of data. More... | |
Public Member Functions inherited from torch::data::datasets::BatchDataset< UncopyableDataset, std::vector< int > > | |
MapDataset< UncopyableDataset, TransformType > | map (TransformType transform)& |
Creates a MapDataset that applies the given transform to this dataset. | |
MapDataset< UncopyableDataset, TransformType > | map (TransformType transform)&& |
Creates a MapDataset that applies the given transform to this dataset. | |
Additional Inherited Members | |
Public Types inherited from torch::data::datasets::Dataset< UncopyableDataset, int > | |
using | ExampleType = int |
Public Types inherited from torch::data::datasets::BatchDataset< UncopyableDataset, std::vector< int > > | |
using | SelfType = UncopyableDataset |
using | BatchType = std::vector< int > |
using | BatchRequestType = ArrayRef< size_t > |
Static Public Attributes inherited from torch::data::datasets::BatchDataset< UncopyableDataset, std::vector< int > > | |
static constexpr bool | is_stateful |
Definition at line 731 of file dataloader.cpp.