MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / NvmlException

Class NvmlException

tensorpack/utils/nvml.py:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37class NvmlException(Exception):
38 def __init__(self, error_code):
39 super(NvmlException, self).__init__(error_code)
40 self.error_code = error_code
41
42 def __str__(self):
43 return NvmlErrorCodes[str(self.error_code)]
44
45
46def _check_return(ret):

Callers 2

_check_returnFunction · 0.85
_function_pointerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected