Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Data Fields
torch::data::WorkerException Struct Reference

An exception thrown when a DataLoader's worker thread throws an exception, which is caught. More...

#include <worker_exception.h>

Inheritance diagram for torch::data::WorkerException:

Public Member Functions

 WorkerException (std::exception_ptr original)
 Constructs a WorkerException from an exception_ptr.
 
const char * what () const noexceptoverride
 

Data Fields

std::exception_ptr original_exception
 The original exception thrown in the worker thread.
 
std::string message
 This exception's message (not the original exception's message).
 

Detailed Description

An exception thrown when a DataLoader's worker thread throws an exception, which is caught.

A WorkerException stores an exception_ptr to the original exception thrown in the worker thread.

Definition at line 13 of file worker_exception.h.


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