Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AIS-SNU/Smart-Infinity
/ get_next_buffer
Method
get_next_buffer
DeepSpeedExample/megatron/memory.py:140–145 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
138
139
140
def
get_next_buffer(self):
141
self._index += 1
142
self._index = self._index % self.num_buffers
143
buff = self.buffers[self._index]
144
assert not buff.is_in_use(),
'buffer is already in use.'
145
return
buff
Callers
nothing calls this directly
Calls
1
is_in_use
Method · 0.80
Tested by
no test coverage detected