Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Data Fields
torch::data::DataLoaderBase< Dataset, Batch, BatchRequest >::Job Struct Reference

A Job is either a BatchRequest (new indices to fetch data at) or a QuitWorker object, to indicate the worker should shut down. More...

#include <base.h>

Inheritance diagram for torch::data::DataLoaderBase< Dataset, Batch, BatchRequest >::Job:
torch::data::DataLoaderBase< Dataset, Batch, BatchRequest >::Sequenced

Public Member Functions

 Job (QuitWorker q, size_t sqn)
 
 Job (BatchRequest &&i, size_t sqn)
 
- Public Member Functions inherited from torch::data::DataLoaderBase< Dataset, Batch, BatchRequest >::Sequenced
 Sequenced (size_t sqn)
 

Data Fields

optional< QuitWorkerquit
 
optional< BatchRequest > batch_request
 
- Data Fields inherited from torch::data::DataLoaderBase< Dataset, Batch, BatchRequest >::Sequenced
size_t sequence_number
 

Detailed Description

template<typename Dataset, typename Batch, typename BatchRequest>
struct torch::data::DataLoaderBase< Dataset, Batch, BatchRequest >::Job

A Job is either a BatchRequest (new indices to fetch data at) or a QuitWorker object, to indicate the worker should shut down.

Definition at line 111 of file base.h.


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