MCPcopy
hub / github.com/hpcaitech/ColossalAI / stop

Method stop

colossalai/utils/timer.py:113–123  ·  view source on GitHub ↗

Stop namely one of the timers. Args: name (str): Timer's key. keep_in_history (bool): Whether does it record into history each start-stop interval.

(self, name: str, keep_in_history: bool)

Source from the content-addressed store, hash-verified

111 return self._timers[name].start()
112
113 def stop(self, name: str, keep_in_history: bool):
114 """Stop namely one of the timers.
115
116 Args:
117 name (str): Timer's key.
118 keep_in_history (bool): Whether does it record into history each start-stop interval.
119 """
120 if self._on:
121 return self._timers[name].stop(keep_in_history)
122 else:
123 return None
124
125 def get_timer(self, name):
126 """Get timer by its name (from multimer)

Callers 1

mainFunction · 0.95

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected