MCPcopy Create free account
hub / github.com/AkaliKong/MiniOneRec / get_codebook

Method get_codebook

rq/models/vq.py:29–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 self.embedding.weight.data.zero_()
28
29 def get_codebook(self):
30 return self.embedding.weight
31
32 def get_codebook_entry(self, indices, shape=None):
33 # get quantized latent vectors

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected