MCPcopy Create free account
hub / github.com/modelscope/modelscope / __exit__

Method __exit__

modelscope/preprocessors/cv/timer.py:54–56  ·  view source on GitHub ↗
(self, type, value, traceback)

Source from the content-addressed store, hash-verified

52 return self
53
54 def __exit__(self, type, value, traceback):
55 print(self.print_tmpl.format(self.since_last_check()))
56 self._is_running = False
57
58 def start(self):
59 """Start the timer."""

Callers

nothing calls this directly

Calls 2

since_last_checkMethod · 0.95
printFunction · 0.85

Tested by

no test coverage detected