Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RightNow-AI/autokernel
/ _get_gpu_name
Function
_get_gpu_name
verify.py:957–961 ·
view source on GitHub ↗
Get current GPU name.
()
Source
from the content-addressed store, hash-verified
955
956
957
def
_get_gpu_name() -> str:
958
""
"Get current GPU name."
""
959
if
torch.cuda.is_available():
960
return
torch.cuda.get_device_name(0)
961
return
"No GPU"
962
963
964
def
_output_shape_str(output: Any) -> str:
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected