Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
UnCopyableDataset Struct Reference
Inheritance diagram for UnCopyableDataset:
torch::data::datasets::Dataset< UnCopyableDataset > torch::data::datasets::BatchDataset< UnCopyableDataset, std::vector< Example<> > >

Public Member Functions

 UnCopyableDataset (const UnCopyableDataset &)=delete
 
UnCopyableDatasetoperator= (const UnCopyableDataset &)=delete
 
 UnCopyableDataset (UnCopyableDataset &&)=default
 
UnCopyableDatasetoperator= (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.
 
- Public Member Functions inherited from torch::data::datasets::Dataset< UnCopyableDataset >
std::vector< ExampleTypeget_batch (ArrayRef< size_t > indices) override
 Returns a batch of data. More...
 
- Public Member Functions inherited from torch::data::datasets::BatchDataset< UnCopyableDataset, std::vector< Example<> > >
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 >
using ExampleType = Example<>
 
- Public Types inherited from torch::data::datasets::BatchDataset< UnCopyableDataset, std::vector< Example<> > >
using SelfType = UnCopyableDataset
 
using BatchType = std::vector< Example<> >
 
using BatchRequestType = ArrayRef< size_t >
 
- Static Public Attributes inherited from torch::data::datasets::BatchDataset< UnCopyableDataset, std::vector< Example<> > >
static constexpr bool is_stateful
 

Detailed Description

Definition at line 599 of file dataloader.cpp.


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