Coverage for onnxcustom/training/excs.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.0.5, created at 2023-01-17 01:42 +0100

1""" 

2@file 

3@brief Exceptions. 

4""" 

5 

6 

7class ConvergenceError(RuntimeError): 

8 """ 

9 Raised when a learning algorithm failed 

10 to converge. 

11 """ 

12 pass 

13 

14 

15class ConvergenceWarning(UserWarning): 

16 """ 

17 Raised when a learning algorithm failed 

18 to converge. 

19 """ 

20 pass 

21 

22 

23class EvaluationError(RuntimeError): 

24 """ 

25 Raised when an evaluation failed. 

26 """ 

27 pass 

28 

29 

30class ProviderError(RuntimeError): 

31 """ 

32 Raised when an input is not on the expected device (CPU, GPU). 

33 """ 

34 pass