(self, code_b, shape, channel_first=True)
| 78 | return dec |
| 79 | |
| 80 | def decode_code(self, code_b, shape, channel_first=True): |
| 81 | quant_b = self.quantize.get_codebook_entry(code_b, shape, channel_first) |
| 82 | dec = self.decode(quant_b) |
| 83 | return dec |
| 84 | |
| 85 | def forward(self, input): |
| 86 | quant, diff, _ = self.encode(input) |