Skip to content

Commit 818973c

Browse files
committed
yet another fix for residual fsq
1 parent 86dbdec commit 818973c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'vector_quantize_pytorch',
55
packages = find_packages(),
6-
version = '1.11.1',
6+
version = '1.11.2',
77
license='MIT',
88
description = 'Vector Quantization - Pytorch',
99
long_description_content_type = 'text/markdown',

vector_quantize_pytorch/residual_fsq.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ def forward(
163163

164164
if should_quantize_dropout and quantizer_index > rand_quantize_dropout_index:
165165
all_indices.append(null_indices)
166-
all_losses.append(null_loss)
167166
continue
168167

169168
quantized, indices = layer(residual / scale)
@@ -178,7 +177,7 @@ def forward(
178177

179178
quantized_out = self.project_out(quantized_out)
180179

181-
# stack all losses and indices
180+
# stack all indices
182181

183182
all_indices = torch.stack(all_indices, dim = -1)
184183

0 commit comments

Comments
 (0)