MCPcopy
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
68def time_synchronized():
69 torch.cuda.synchronize() if torch.cuda.is_available() else None
70 return time.time()
71
72
73def is_parallel(model):

Callers 2

testFunction · 0.90
detectFunction · 0.90

Calls

no outgoing calls

Tested by 1

testFunction · 0.72