Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zai-org/CodeGeeX
/ get_next_buffer
Method
get_next_buffer
codegeex/megatron/memory.py:145–150 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
143
self._index = -1
144
145
def
get_next_buffer(self):
146
self._index += 1
147
self._index = self._index % self.num_buffers
148
buff = self.buffers[self._index]
149
assert not buff.is_in_use(),
"buffer is already in use."
150
return
buff
Callers
nothing calls this directly
Calls
1
is_in_use
Method · 0.80
Tested by
no test coverage detected