File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ class HashZchManagedCollisionModule(ManagedCollisionModule):
185185
186186 IDENTITY_BUFFER : str = "_hash_zch_identities"
187187 METADATA_BUFFER : str = "_hash_zch_metadata"
188+ BUCKET_BUFFER : str = "_hash_zch_bucket"
188189
189190 table_name_on_device_remapped_ids_dict : Dict [
190191 str , torch .Tensor
@@ -308,7 +309,10 @@ def __init__(
308309
309310 self ._max_probe = max_probe
310311 self ._buckets = total_num_buckets
311- self .register_buffer ("_hash_zch_bucket" , torch .tensor ([[total_num_buckets ]]))
312+ self .register_buffer (
313+ HashZchManagedCollisionModule .BUCKET_BUFFER ,
314+ torch .tensor ([[total_num_buckets ]]),
315+ )
312316 # Do not need to store in buffer since this is created and consumed
313317 # at each step https://fburl.com/code/axzimmbx
314318 self ._evicted_indices = []
You can’t perform that action at this time.
0 commit comments