Skip to content

Commit 78b36f4

Browse files
committed
address #135
1 parent 97c9b65 commit 78b36f4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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.14.24"
3+
version = "1.14.25"
44
description = "Vector Quantization - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

vector_quantize_pytorch/residual_fsq.py

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

263263
forward_kwargs = dict(
264264
return_all_codes = return_all_codes,
265-
rand_quantize_dropout_fixed_seed = random.randint(0, 10_000_000)
265+
rand_quantize_dropout_fixed_seed = random.randint(0, int(1e7))
266266
)
267267

268268
# invoke residual vq on each group

vector_quantize_pytorch/residual_lfq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def forward(
252252
forward_kwargs = dict(
253253
mask = mask,
254254
return_all_codes = return_all_codes,
255-
rand_quantize_dropout_fixed_seed = random.randint(0, 1e7)
255+
rand_quantize_dropout_fixed_seed = random.randint(0, int(1e7))
256256
)
257257

258258
# invoke residual vq on each group

vector_quantize_pytorch/residual_vq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def forward(
288288
sample_codebook_temp = sample_codebook_temp,
289289
mask = mask,
290290
freeze_codebook = freeze_codebook,
291-
rand_quantize_dropout_fixed_seed = random.randint(0, 1e7)
291+
rand_quantize_dropout_fixed_seed = random.randint(0, int(1e7))
292292
)
293293

294294
# invoke residual vq on each group

0 commit comments

Comments
 (0)