Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sampson-Lee/Rail-Detection
/ to_python_float
Function
to_python_float
utils/dist_utils.py:14–18 ·
view source on GitHub ↗
(t)
Source
from the content-addressed store, hash-verified
12
13
14
def
to_python_float(t):
15
if
hasattr(t,
'item'
):
16
return
t.item()
17
else
:
18
return
t[0]
19
20
21
def
get_rank():
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected