(self, code_b, shape=None, channel_first=True)
| 90 | return dec |
| 91 | |
| 92 | def decode_code(self, code_b, shape=None, channel_first=True): |
| 93 | quant_b = self.quantize.get_codebook_entry(code_b, shape, channel_first) |
| 94 | dec = self.decode(quant_b) |
| 95 | return dec |
| 96 | |
| 97 | def forward(self, input): |
| 98 | quant, diff, _ = self.encode(input) |
no test coverage detected