MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / stop

Method stop

SwissArmyTransformer/sat/training/utils.py:86–91  ·  view source on GitHub ↗

Stop the timer.

(self)

Source from the content-addressed store, hash-verified

84 self.started_ = True
85
86 def stop(self):
87 """Stop the timer."""
88 assert self.started_, 'timer is not started'
89 torch.cuda.synchronize()
90 self.elapsed_ += (time.time() - self.start_time)
91 self.started_ = False
92
93 def reset(self):
94 """Reset timer."""

Callers 15

elapsedMethod · 0.95
get_batchFunction · 0.80
forward_stepFunction · 0.80
get_batchFunction · 0.80
forward_stepFunction · 0.80
get_batchFunction · 0.80
forward_stepFunction · 0.80
get_batchFunction · 0.80
forward_stepFunction · 0.80
get_batchFunction · 0.80
forward_stepFunction · 0.80
get_batchFunction · 0.80

Calls

no outgoing calls

Tested by 6

get_batchFunction · 0.64
forward_stepFunction · 0.64
get_batchFunction · 0.64
forward_stepFunction · 0.64
get_batchFunction · 0.64
forward_stepFunction · 0.64