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

Public Member Functions

 DummyDataset (size_t size=100)
 
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< DummyDataset, 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< DummyDataset, std::vector< int > >
MapDataset< DummyDataset, TransformType > map (TransformType transform)&
 Creates a MapDataset that applies the given transform to this dataset.
 
MapDataset< DummyDataset, TransformType > map (TransformType transform)&&
 Creates a MapDataset that applies the given transform to this dataset.
 

Data Fields

size_t size_
 

Additional Inherited Members

- Public Types inherited from torch::data::datasets::Dataset< DummyDataset, int >
using ExampleType = int
 
- Public Types inherited from torch::data::datasets::BatchDataset< DummyDataset, std::vector< int > >
using SelfType = DummyDataset
 
using BatchType = std::vector< int >
 
using BatchRequestType = ArrayRef< size_t >
 
- Static Public Attributes inherited from torch::data::datasets::BatchDataset< DummyDataset, std::vector< int > >
static constexpr bool is_stateful
 

Detailed Description

Definition at line 30 of file dataloader.cpp.


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