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

Method __init__

tests/unit/modeling.py:86–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84class GPUTimer:
85
86 def __init__(self):
87 super().__init__()
88 self.start = get_accelerator().Event() # noqa: F821
89 self.stop = get_accelerator().Event() # noqa: F821
90
91 def record(self):
92 self.start.record()

Callers 8

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

get_acceleratorFunction · 0.90
EventMethod · 0.45

Tested by

no test coverage detected