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

Public Types

using BatchType = std::vector< int >
- Public Types inherited from torch::data::datasets::ChunkDataReader< std::vector< int > >
using ChunkType = std::vector< int >

Public Member Functions

BatchType read_chunk (size_t chunk_index) override
 Read an entire chunk.
size_t chunk_count () override
 Returns the number of chunks available in this reader.
void reset () override
 This will clear any internal state associate with this reader.

Data Fields

size_t chunk_sizes [chunk_count_] = {10, 5, 20}

Static Public Attributes

static const size_t chunk_count_ = 3

Detailed Description

Definition at line 65 of file dataloader.cpp.

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