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

Method __exit__

tensorpack/utils/nvml.py:167–169  ·  view source on GitHub ↗

Destroy current context

(self, type, value, tb)

Source from the content-addressed store, hash-verified

165 return self
166
167 def __exit__(self, type, value, tb):
168 """Destroy current context"""
169 _check_return(_NVML.get_function("nvmlShutdown")())
170
171 def num_devices(self):
172 """Get number of devices """

Callers

nothing calls this directly

Calls 2

_check_returnFunction · 0.85
get_functionMethod · 0.80

Tested by

no test coverage detected