(self, indices, shape=None)
| 30 | return self.embedding.weight |
| 31 | |
| 32 | def get_codebook_entry(self, indices, shape=None): |
| 33 | # get quantized latent vectors |
| 34 | z_q = self.embedding(indices) |
| 35 | if shape is not None: |
| 36 | z_q = z_q.view(shape) |
| 37 | |
| 38 | return z_q |
| 39 | |
| 40 | def init_emb(self, data): |
| 41 |
nothing calls this directly
no outgoing calls
no test coverage detected