Skip to content

Commit ae5e07c

Browse files
committed
quick fix
1 parent 6265353 commit ae5e07c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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.1"
3+
version = "1.22.2"
44
description = "Vector Quantization - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

vector_quantize_pytorch/finite_scalar_quantization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def quantize(self, z):
158158
torch.full((batch,), noise_dropout, device = device)
159159
).bool()
160160

161-
quantized = torch.where(quantize_mask, unquantized, quantized)
161+
quantized = einx.where('b, b ..., b ...', quantize_mask, unquantized, quantized)
162162

163163
# determine where to add a random offset elementwise
164164

0 commit comments

Comments
 (0)