Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jan 28, 2025
1 parent ec2f4f6 commit ac5d631
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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.21.2"
version = "1.21.4"
description = "Vector Quantization - Pytorch"
authors = [
{ name = "Phil Wang", email = "[email protected]" }
Expand Down
2 changes: 2 additions & 0 deletions vector_quantize_pytorch/lookup_free_quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ def forward(

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

input_for_entropy = original_input

if exists(mask):
input_for_entropy = original_input[mask]

Expand Down

0 comments on commit ac5d631

Please sign in to comment.