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

Method name

tensorpack/utils/nvml.py:140–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 return {'gpu': c_util.gpu, 'memory': c_util.memory}
139
140 def name(self):
141 buflen = 1024
142 buf = create_string_buffer(buflen)
143 fn = _NVML.get_function("nvmlDeviceGetName")
144 ret = fn(self.hnd, buf, c_uint(1024))
145 _check_return(ret)
146 return buf.value.decode('utf-8')
147
148
149class NVMLContext(object):

Callers 1

nvml.pyFile · 0.45

Calls 2

_check_returnFunction · 0.85
get_functionMethod · 0.80

Tested by

no test coverage detected