Support various block sizes & Change default block size to 16 (#38)
This commit is contained in:
@@ -15,9 +15,6 @@ class BlockAllocator:
|
||||
block_size: int,
|
||||
num_blocks: int,
|
||||
) -> None:
|
||||
if block_size not in [8, 16, 32]:
|
||||
raise ValueError(f'Unsupported block size: {block_size}'
|
||||
'The block size must be one of {8, 16, 32}.')
|
||||
self.device = device
|
||||
self.block_size = block_size
|
||||
self.num_blocks = num_blocks
|
||||
|
||||
Reference in New Issue
Block a user