MCPcopy Create free account
hub / github.com/THUDM/GLM / start

Method start

utils.py:125–130  ·  view source on GitHub ↗

Start the timer.

(self)

Source from the content-addressed store, hash-verified

123 self.start_time = time.time()
124
125 def start(self):
126 """Start the timer."""
127 assert not self.started_, 'timer has already been started'
128 torch.cuda.synchronize()
129 self.start_time = time.time()
130 self.started_ = True
131
132 def stop(self):
133 """Stop the timer."""

Callers 12

elapsedMethod · 0.95
finetune_forward_stepFunction · 0.80
_trainFunction · 0.80
finetuneFunction · 0.80
forward_stepFunction · 0.80
trainFunction · 0.80
backward_stepFunction · 0.80
train_stepFunction · 0.80
mainFunction · 0.80
seq2seq_forward_stepFunction · 0.80
lm_forward_stepFunction · 0.80
processMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected