MCPcopy
hub / github.com/zai-org/CogView / start

Method start

utils.py:89–94  ·  view source on GitHub ↗

Start the timer.

(self)

Source from the content-addressed store, hash-verified

87 self.start_time = time.time()
88
89 def start(self):
90 """Start the timer."""
91 assert not self.started_, 'timer has already been started'
92 torch.cuda.synchronize()
93 self.start_time = time.time()
94 self.started_ = True
95
96 def stop(self):
97 """Stop the timer."""

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected