Public Member Functions | |
UnCopyableDataset (const UnCopyableDataset &)=delete | |
UnCopyableDataset & | operator= (const UnCopyableDataset &)=delete |
UnCopyableDataset (UnCopyableDataset &&)=default | |
UnCopyableDataset & | operator= (UnCopyableDataset &&)=default |
Example | 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. | |
![]() | |
std::vector< ExampleType > | get_batch (ArrayRef< size_t > indices) override |
Returns a batch of data. More... | |
![]() | |
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 | |
![]() | |
using | ExampleType = Example<> |
![]() | |
using | SelfType = UnCopyableDataset |
using | BatchType = std::vector< Example<> > |
using | BatchRequestType = ArrayRef< size_t > |
![]() | |
static constexpr bool | is_stateful |
Definition at line 599 of file dataloader.cpp.