Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/FoundationVision/ByteTrack
/ tensor2pyobj
Function
tensor2pyobj
yolox/utils/allreduce_norm.py:47–49 ·
view source on GitHub ↗
deserialize tensor to picklable python object
(tensor)
Source
from the content-addressed store, hash-verified
45
46
47
def
tensor2pyobj(tensor):
48
""
"deserialize tensor to picklable python object"
""
49
return
pickle.loads(tensor.cpu().numpy().tobytes())
50
51
52
def
_get_reduce_op(op_name):
Callers
1
all_reduce
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected