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

Method get_function

tensorpack/utils/nvml.py:77–79  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

75 raise NvmlException(NVML_ERROR_FUNCTION_NOT_FOUND)
76
77 def get_function(self, name):
78 if name in self.func_ptr.keys():
79 return self.func_ptr[name]
80
81
82_NVML = NVML()

Callers 7

memoryMethod · 0.80
utilizationMethod · 0.80
nameMethod · 0.80
__enter__Method · 0.80
__exit__Method · 0.80
num_devicesMethod · 0.80
deviceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected