Shortcuts

Struct DataLoaderBase::Job

Nested Relationships

This struct is a nested type of Template Class DataLoaderBase.

Inheritance Relationships

Base Type

Struct Documentation

struct torch::data::DataLoaderBase::Job : public torch::data::DataLoaderBase<Dataset, Batch, BatchRequest>::Sequenced

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

Public Functions

Job() = default
Job(QuitWorker q, size_t sqn)
Job(BatchRequest &&i, size_t sqn)

Public Members

optional<QuitWorker> quit
optional<BatchRequest> batch_request

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources