(self, code_b, shape=None, channel_first=True)
| 50 | return dec |
| 51 | |
| 52 | def decode_code(self, code_b, shape=None, channel_first=True): |
| 53 | quant_b = self.quantize.get_codebook_entry(code_b, shape, channel_first) |
| 54 | dec = self.decode(quant_b) |
| 55 | return dec |
| 56 | |
| 57 | def forward(self, input): |
| 58 | quant, diff, _ = self.encode(input) |
no test coverage detected