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

Method stop

codegeex/megatron/global_vars.py:208–213  ·  view source on GitHub ↗

Stop the timer.

(self)

Source from the content-addressed store, hash-verified

206 self.started_ = True
207
208 def stop(self):
209 """Stop the timer."""
210 assert self.started_, "timer is not started"
211 torch.cuda.synchronize()
212 self.elapsed_ += time.time() - self.start_time
213 self.started_ = False
214
215 def reset(self):
216 """Reset 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