MCPcopy Index your code
hub / github.com/hpcaitech/ColossalAI / start

Method start

colossalai/utils/timer.py:102–111  ·  view source on GitHub ↗

Start namely one of the timers. Args: name (str): Timer's key.

(self, name: str)

Source from the content-addressed store, hash-verified

100 self._timers = dict()
101
102 def start(self, name: str):
103 """Start namely one of the timers.
104
105 Args:
106 name (str): Timer's key.
107 """
108 if self._on:
109 if name not in self._timers:
110 self._timers[name] = Timer()
111 return self._timers[name].start()
112
113 def stop(self, name: str, keep_in_history: bool):
114 """Stop namely one of the timers.

Callers 1

mainFunction · 0.95

Calls 2

TimerClass · 0.70
startMethod · 0.45

Tested by

no test coverage detected