(self, code_b, shape=None, channel_first=True)
| 139 | return dec |
| 140 | |
| 141 | def decode_code(self, code_b, shape=None, channel_first=True): |
| 142 | quant_b = self.quantize.get_codebook_entry(code_b, shape, channel_first) |
| 143 | dec = self.decode(quant_b) |
| 144 | return dec |
| 145 | |
| 146 | def forward(self, input): |
| 147 | quant, diff, _ = self.encode(input) |
no test coverage detected