Struct WorkerException¶
Defined in File worker_exception.h
Page Contents
Struct Documentation¶
-
struct
torch::data
::
WorkerException
: public exception¶ An exception thrown when a DataLoader’s worker thread throws an exception, which is caught.
A
WorkerException
stores anexception_ptr
to the original exception thrown in the worker thread.Public Functions
-
WorkerException
(std::exception_ptr original)¶ Constructs a
WorkerException
from anexception_ptr
.
-
const char * what () const noexceptoverride
-