Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Types | Public Member Functions
torch::data::datasets::ChunkDataReader< Chunk > Class Template Referenceabstract

Interface for chunk reader, which performs data chunking and reading of entire chunks. More...

#include <chunk.h>

Public Types

using ChunkType = Chunk
 

Public Member Functions

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

Detailed Description

template<typename Chunk = std::vector<Example<>>>
class torch::data::datasets::ChunkDataReader< Chunk >

Interface for chunk reader, which performs data chunking and reading of entire chunks.

A chunk could be an entire file, such as an audio data file or an image, or part of a file in the case of a large text-file split based on seek positions.

Definition at line 16 of file chunk.h.


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