Skip to content

Commit

Permalink
address #191
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Feb 3, 2025
1 parent ac5d631 commit 55fa8f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.4"
version = "1.21.5"
description = "Vector Quantization - Pytorch"
authors = [
{ name = "Phil Wang", email = "[email protected]" }
Expand Down
2 changes: 1 addition & 1 deletion vector_quantize_pytorch/residual_sim_vq.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def forward(
all_losses = []
all_indices = []

should_quantize_dropout = self.training and self.quantize_dropout and not return_loss
should_quantize_dropout = self.training and self.quantize_dropout

# sample a layer index at which to dropout further residual quantization
# also prepare null indices and loss
Expand Down

0 comments on commit 55fa8f1

Please sign in to comment.