Create a new context
(self)
| 159 | |
| 160 | """ |
| 161 | def __enter__(self): |
| 162 | """Create a new context """ |
| 163 | _NVML.load() |
| 164 | _check_return(_NVML.get_function("nvmlInit_v2")()) |
| 165 | return self |
| 166 | |
| 167 | def __exit__(self, type, value, tb): |
| 168 | """Destroy current context""" |
no test coverage detected