Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MLSysU/TD-Pipe
/ get_num_empty_slots
Method
get_num_empty_slots
TD_Pipe/block.py:30–31 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
28
return
self.num_tokens == 0
29
30
def
get_num_empty_slots(self) -> int:
31
return
self.block_size - self.num_tokens
32
33
def
is_full(self) -> bool:
34
return
self.num_tokens == self.block_size
Callers
2
append_tokens
Method · 0.95
_append_tokens_to_blocks
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected