taming-transformers icon indicating copy to clipboard operation
taming-transformers copied to clipboard

About VectorQuantizer2

Open hsfzxjy opened this issue 3 years ago • 1 comments

Hi. I have seen this sentence in doc-string of class VectorQuantizer2 (link):

Mostly avoids costly matrix multiplications and allows for post-hoc remapping of indices.

But I do not quite understand how it "avoids costly matrix multiplications" compared with VectorQuantizer? It'll be appreciated if you can share some advice.

Looking forward to your reply!

hsfzxjy avatar Jun 28 '21 07:06 hsfzxjy