MCPcopy
hub / github.com/deepspeedai/DeepSpeedExamples / start

Method start

Megatron-LM/utils.py:79–84  ·  view source on GitHub ↗

Start the timer.

(self)

Source from the content-addressed store, hash-verified

77 self.start_time = time.time()
78
79 def start(self):
80 """Start the timer."""
81 assert not self.started_, 'timer has already been started'
82 torch.cuda.synchronize()
83 self.start_time = time.time()
84 self.started_ = True
85
86 def stop(self):
87 """Stop the timer."""

Callers 13

elapsedMethod · 0.95
get_batchFunction · 0.45
forward_stepFunction · 0.45
train_stepFunction · 0.45
trainFunction · 0.45
get_batchFunction · 0.45
forward_stepFunction · 0.45
backward_stepFunction · 0.45
train_stepFunction · 0.45
trainFunction · 0.45
get_batchFunction · 0.45
forward_stepFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected