Skip to content

Commit

Permalink
fix property codebook
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains authored Nov 20, 2021
1 parent 826c620 commit f96d197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vector_quantize_pytorch/vector_quantize_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def __init__(

@property
def codebook(self):
return self._codebook.codebook
return self._codebook.embed

def forward(self, x):
need_transpose = not self.channel_last
Expand Down

0 comments on commit f96d197

Please sign in to comment.