torchtraining.exceptions¶
Exceptions which allow users to finish pipes abruptly.
Usually shouldn’t be used except for the above.
-
exception
torchtraining.exceptions.EarlyStopping[source]¶ Bases:
torchtraining.exceptions.EpochsExceptionEarlyStopping special exception
-
exception
torchtraining.exceptions.EpochsException[source]¶ Bases:
ExceptionSpecial exception caught by
torchtraining.epochs.EpochsBaseobjects.User should throw this exception if he wants to stop current iteration immediately and proceed with the rest of program.
Should be used with cautious.
Currently used by
torchtraining.callbacks.EarlyStopping,torchtraining.callbacks.TimeStoppingandtorchtraining.callbacks.TerminateOnNan.
-
exception
torchtraining.exceptions.IterationsException[source]¶ Bases:
ExceptionSpecial exception caught by
torchtraining.iterations.IterationsBaseobjects.User should throw this exception if he wants to stop current iteration immediately and proceed with the rest of program.
Should be used with cautious.
-
exception
torchtraining.exceptions.TerminateOnNan[source]¶ Bases:
torchtraining.exceptions.EpochsExceptionTerminateOnNaN special exception
-
exception
torchtraining.exceptions.TimeStopping[source]¶ Bases:
torchtraining.exceptions.EpochsExceptionTimeStopping special exception