Skip to content

Commit d31c050

Browse files
committed
address #206
1 parent 71516e9 commit d31c050

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-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.22.5"
3+
version = "1.22.6"
44
description = "Vector Quantization - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "[email protected]" }

vector_quantize_pytorch/lookup_free_quantization.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,10 @@ def forward(
330330

331331
if self.training:
332332

333+
codebook = self.codebook
334+
333335
if force_f32:
334-
codebook = self.codebook.float()
336+
codebook = codebook.float()
335337

336338
codebook = self.maybe_l2norm(codebook)
337339

0 commit comments

Comments
 (0)