MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / __init__

Method __init__

deepspeed/utils/timer.py:39–47  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

37 """Timer."""
38
39 def __init__(self, name):
40 self.name_ = name
41 self.started_ = False
42 self.event_timers = []
43 self.use_host_timer = get_accelerator().is_synchronized_device()
44 self.start_event = None
45 self.elapsed_records = None
46 self.start_time = 0.0
47 self.end_time = 0.0
48
49 def start(self):
50 """Start the timer."""

Callers

nothing calls this directly

Calls 2

get_acceleratorFunction · 0.90

Tested by

no test coverage detected