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 16ec0a8 commit cb3dd32Copy full SHA for cb3dd32
pyproject.toml
@@ -1,6 +1,6 @@
1
[project]
2
name = "vector-quantize-pytorch"
3
-version = "1.15.1"
+version = "1.15.2"
4
description = "Vector Quantization - Pytorch"
5
authors = [
6
{ name = "Phil Wang", email = "lucidrains@gmail.com" }
vector_quantize_pytorch/residual_vq.py
@@ -171,7 +171,7 @@ def forward(
171
172
elif is_distributed():
173
# in distributed environment, synchronize a random seed value if not given
174
- t = torch.tensor(random.randrange(10_000))
+ t = torch.tensor(random.randrange(10_000), device = device)
175
dropout_seed = dist.all_reduce(t).item()
176
rand = random.Random(dropout_seed)
177
0 commit comments