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

Method _synchronize

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

Source from the content-addressed store, hash-verified

247 self.initialized = True
248
249 def _synchronize(self):
250 if self.sync_current_stream:
251 get_accelerator().current_stream().synchronize()
252 else:
253 get_accelerator().synchronize()
254
255 def start(self):
256 if not self.config.enabled:

Callers 2

startMethod · 0.95
stopMethod · 0.95

Calls 3

get_acceleratorFunction · 0.90
synchronizeMethod · 0.45
current_streamMethod · 0.45

Tested by

no test coverage detected