Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ _stream_helper
Class
_stream_helper
imperative/python/megengine/device.py:46–53 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
44
45
46
class
_stream_helper:
47
def
__init__(self):
48
self.stream = 1
49
50
def
get_next(self):
51
out = self.stream
52
self.stream = self.stream + 1
53
return
out
54
55
56
_sh = _stream_helper()
Callers
1
device.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected