Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
100
class
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_accelerator
Function · 0.90
Event
Method · 0.45
Tested by
no test coverage detected