exceptions module

Custom exceptions for the ZüNIS library

exception AvertedCUDARuntimeError[source]

Bases: RuntimeError

Prevents the raising of a RuntimeError cause by a CUDA device-side assert failure which whould lock the GPU in a failed state.

exception NoCheckpoint[source]

Bases: RuntimeError

Raised to signify no checkpoint is available for reloading

exception TrainingInterruption[source]

Bases: RuntimeError

Raised when a Trainer determines that the model should no longer be trained