Skip to content

Commit cb3dd32

Browse files
committed
address #142
1 parent 16ec0a8 commit cb3dd32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vector-quantize-pytorch"
3-
version = "1.15.1"
3+
version = "1.15.2"
44
description = "Vector Quantization - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

vector_quantize_pytorch/residual_vq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def forward(
171171

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

0 commit comments

Comments
 (0)