Skip to content

Commit ac5d631

Browse files
committed
patch
1 parent ec2f4f6 commit ac5d631

File tree

2 files changed

+3
-1
lines changed

2 files changed

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

vector_quantize_pytorch/lookup_free_quantization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ def forward(
337337

338338
# whether to only use a fraction of probs, for reducing memory
339339

340+
input_for_entropy = original_input
341+
340342
if exists(mask):
341343
input_for_entropy = original_input[mask]
342344

0 commit comments

Comments
 (0)