We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22a0375 commit 5fe30dbCopy full SHA for 5fe30db
pyproject.toml
@@ -1,6 +1,6 @@
1
[project]
2
name = "vector-quantize-pytorch"
3
-version = "1.17.7"
+version = "1.17.8"
4
description = "Vector Quantization - Pytorch"
5
authors = [
6
{ name = "Phil Wang", email = "lucidrains@gmail.com" }
vector_quantize_pytorch/residual_vq.py
@@ -367,7 +367,7 @@ def forward(
367
368
# if shared codebook, update ema only at end
369
370
- if self.shared_codebook:
+ if self.training and self.shared_codebook:
371
shared_layer = first(self.layers)
372
shared_layer._codebook.update_ema()
373
shared_layer.update_in_place_optimizer()
0 commit comments