MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / start

Method start

deepspeed/utils/timer.py:238–246  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

236 self.initialized = True
237
238 def start(self):
239 if not self.config.enabled:
240 return
241 self._init_timer()
242 self.started = True
243 if self.global_step_count >= self.start_step:
244 if self.config.synchronized:
245 get_accelerator().synchronize()
246 self.start_time = time.time()
247
248 def _is_report_boundary(self):
249 if self.steps_per_output is None:

Callers

nothing calls this directly

Calls 3

_init_timerMethod · 0.95
get_acceleratorFunction · 0.90
synchronizeMethod · 0.45

Tested by

no test coverage detected