We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fdcd08 commit 654811eCopy full SHA for 654811e
torchrec/modules/hash_mc_modules.py
@@ -305,7 +305,7 @@ def __init__(
305
306
self._max_probe = max_probe
307
self._buckets = total_num_buckets
308
- self.register_buffer("_hash_zch_bucket", torch.tensor(total_num_buckets))
+ self.register_buffer("_hash_zch_bucket", torch.tensor([total_num_buckets]))
309
# Do not need to store in buffer since this is created and consumed
310
# at each step https://fburl.com/code/axzimmbx
311
self._evicted_indices = []
0 commit comments