Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
memory
Method · 0.80
utilization
Method · 0.80
name
Method · 0.80
__enter__
Method · 0.80
__exit__
Method · 0.80
num_devices
Method · 0.80
device
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected