Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/WongKinYiu/PyTorch_YOLOv4
/ time_synchronized
Function
time_synchronized
utils/torch_utils.py:68–70 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
66
67
68
def
time_synchronized():
69
torch.cuda.synchronize()
if
torch.cuda.is_available()
else
None
70
return
time.time()
71
72
73
def
is_parallel(model):
Callers
2
test
Function · 0.90
detect
Function · 0.90
Calls
no outgoing calls
Tested by
1
test
Function · 0.72