Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/open-mmlab/mmengine
/ __exit__
Method
__exit__
mmengine/utils/timer.py:52–54 ·
view source on GitHub ↗
(self, type, value, traceback)
Source
from the content-addressed store, hash-verified
50
return
self
51
52
def
__exit__(self, type, value, traceback):
53
print(self.print_tmpl.format(self.since_last_check()))
54
self._is_running = False
55
56
def
start(self):
57
""
"Start the timer."
""
Callers
4
_export_chrome_trace
Method · 0.45
after_train_iter
Method · 0.45
test_before_run
Method · 0.45
test_after_train_epoch
Method · 0.45
Calls
2
since_last_check
Method · 0.95
format
Method · 0.80
Tested by
2
test_before_run
Method · 0.36
test_after_train_epoch
Method · 0.36