Commit 4f6f4967 authored by Woosuk Kwon's avatar Woosuk Kwon
Browse files

Add get_block_table

parent 331fa0b0
......@@ -228,3 +228,7 @@ class BlockSpaceManager:
for block_table in self.block_tables.values():
self._free_block_table(block_table)
self.block_tables.clear()
def get_block_table(self, seq: Sequence) -> List[int]:
block_table = self.block_tables[seq.seq_id]
return [block.block_number for block in block_table]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment