torchliter.exceptionExceptions used by the Engine class.
BreakIterationBreakIteration Exception.
Parameters
———- shutdown_engine : bool If flag variable shutdown_engine (the default is False) is True, the Engine object will kill both the interation and the epochs
Attributes ———- shutdown_engine
BreakIteration.__init____init__(shutdown_engine: bool = False)
ContinueIterationContinueIteration Exception.
When raised, the Engine iteration will continue.
BadBatchErrorBadBatchError Exception, subclass of ContinueIteration.
If current batch of data is corrupted, skip current batch and fetch a new batch and then continue.
StopEngineStopEngine Exception, subclass of BreakIteration.
When raised at batch iteration level, if shutdown_engine=True then reraise BreakIteration to terminate engine.
StopEngine.__init____init__()
GradientExplosionErrorGradientExplosionError, subclass of StopEngine.
GradientExplosionError.__init____init__()
FoundNanErrorFoundNanError, subclass of StopEngine.
FoundNanError.__init____init__()
EarlyStoppingEarlyStopping, subclass of StopEngine.
EarlyStopping.__init____init__()