Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ finish
Method
finish
caffe2/python/parallel_workers.py:277–280 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
275
))
276
277
def
finish(self):
278
self._metrics.put_metric(
279
'worker_time'
, time.time() - self._start_time)
280
self._metrics.log_metrics()
281
282
283
global_coordinator = GlobalWorkerCoordinator()
Callers
2
onRequestPermissionsResult
Method · 0.45
run_worker
Function · 0.45
Calls
2
put_metric
Method · 0.80
log_metrics
Method · 0.80
Tested by
1
onRequestPermissionsResult
Method · 0.36