MCPcopy Index your code
hub / github.com/zai-org/CodeGeeX / start

Method start

codegeex/megatron/global_vars.py:201–206  ·  view source on GitHub ↗

Start the timer.

(self)

Source from the content-addressed store, hash-verified

199 self.start_time = time.time()
200
201 def start(self):
202 """Start the timer."""
203 assert not self.started_, "timer has already been started"
204 torch.cuda.synchronize()
205 self.start_time = time.time()
206 self.started_ = True
207
208 def stop(self):
209 """Stop the timer."""

Callers 15

elapsedMethod · 0.95
recv_forwardFunction · 0.80
recv_backwardFunction · 0.80
send_forwardFunction · 0.80
send_backwardFunction · 0.80
forward_stepFunction · 0.80
backward_stepFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected