Skip to content

Commit ecf2f7c

Browse files
committed
address #33
1 parent 6f65e72 commit ecf2f7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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 = '0.10.11',
6+
version = '0.10.12',
77
license='MIT',
88
description = 'Vector Quantization - Pytorch',
99
long_description_content_type = 'text/markdown',

vector_quantize_pytorch/residual_vq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def forward(
103103
continue
104104

105105
quantized, indices, loss = layer(residual)
106-
residual = residual - quantized
106+
residual = residual - quantized.detach()
107107
quantized_out = quantized_out + quantized
108108

109109
all_indices.append(indices)

0 commit comments

Comments
 (0)