Skip to content

Commit 55fa8f1

Browse files
committed
address #191
1 parent ac5d631 commit 55fa8f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vector-quantize-pytorch"
3-
version = "1.21.4"
3+
version = "1.21.5"
44
description = "Vector Quantization - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

vector_quantize_pytorch/residual_sim_vq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def forward(
150150
all_losses = []
151151
all_indices = []
152152

153-
should_quantize_dropout = self.training and self.quantize_dropout and not return_loss
153+
should_quantize_dropout = self.training and self.quantize_dropout
154154

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

0 commit comments

Comments
 (0)