Skip to content

Commit

Permalink
address #33
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Nov 23, 2022
1 parent 6f65e72 commit ecf2f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'vector_quantize_pytorch',
packages = find_packages(),
version = '0.10.11',
version = '0.10.12',
license='MIT',
description = 'Vector Quantization - Pytorch',
long_description_content_type = 'text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion vector_quantize_pytorch/residual_vq.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def forward(
continue

quantized, indices, loss = layer(residual)
residual = residual - quantized
residual = residual - quantized.detach()
quantized_out = quantized_out + quantized

all_indices.append(indices)
Expand Down

0 comments on commit ecf2f7c

Please sign in to comment.