• >
  • torchtraining.exceptions
Shortcuts

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.EpochsException

EarlyStopping special exception

exception torchtraining.exceptions.EpochsException[source]

Bases: Exception

Special exception caught by torchtraining.epochs.EpochsBase objects.

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.TimeStopping and torchtraining.callbacks.TerminateOnNan.

exception torchtraining.exceptions.IterationsException[source]

Bases: Exception

Special exception caught by torchtraining.iterations.IterationsBase objects.

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.EpochsException

TerminateOnNaN special exception

exception torchtraining.exceptions.TimeStopping[source]

Bases: torchtraining.exceptions.EpochsException

TimeStopping special exception