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