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

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

8 statements  

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