Struct DataLoaderBase::Result

Nested Relationships

This struct is a nested type of Template Class DataLoaderBase.

Inheritance Relationships

Base Type

Struct Documentation

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

The finished result of a job.

Public Functions

Result() = default
Result(optional<Batch> &&b, size_t sqn)
Result(std::exception_ptr exception, size_t sqn)

Public Members

optional<Batch> batch
std::exception_ptr exception


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources