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

Method start

SwissArmyTransformer/sat/training/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 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