Skip to content

Commit

Permalink
putain quel con
Browse files Browse the repository at this point in the history
  • Loading branch information
Vermeille authored Dec 12, 2024
1 parent 7e5c418 commit 6af25d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchelie/nn/vq.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def forward(
quantized tensor, or (quantized tensor, indices) if
`self.return_indices`
"""
if torch.is_floating_point(my_tensor):
if torch.is_floating_point(x):
return self.quantize(x)
else:
return self.lookup(x)
Expand Down

0 comments on commit 6af25d1

Please sign in to comment.