Skip to content

Commit

Permalink
address #142
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jul 9, 2024
1 parent 16ec0a8 commit cb3dd32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "vector-quantize-pytorch"
version = "1.15.1"
version = "1.15.2"
description = "Vector Quantization - Pytorch"
authors = [
{ name = "Phil Wang", email = "[email protected]" }
Expand Down
2 changes: 1 addition & 1 deletion vector_quantize_pytorch/residual_vq.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def forward(

elif is_distributed():
# in distributed environment, synchronize a random seed value if not given
t = torch.tensor(random.randrange(10_000))
t = torch.tensor(random.randrange(10_000), device = device)
dropout_seed = dist.all_reduce(t).item()
rand = random.Random(dropout_seed)

Expand Down

0 comments on commit cb3dd32

Please sign in to comment.