MCPcopy
hub / github.com/deepspeedai/DeepSpeed / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

100class GPUTimer:
101
102 def __init__(self):
103 super().__init__()
104 self.start = get_accelerator().Event() # noqa: F821
105 self.stop = get_accelerator().Event() # noqa: F821
106
107 def record(self):
108 self.start.record()

Callers 9

__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
__init__Method · 0.45

Calls 2

get_acceleratorFunction · 0.90
EventMethod · 0.45

Tested by

no test coverage detected