Skip to content

Commit 37620e4

Browse files
committed
should never require gradients
1 parent 8f38abb commit 37620e4

File tree

2 files changed

+2
-1
lines changed

2 files changed

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

vector_quantize_pytorch/random_projection_quantizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def __init__(
3434
**kwargs
3535
)
3636

37+
@torch.no_grad()
3738
def forward(self, x):
3839

3940
x = einsum('b n d, h d e -> b n h e', x, self.rand_projs)

0 commit comments

Comments
 (0)