(self, x)
| 215 | self.model_ema(self) |
| 216 | |
| 217 | def encode(self, x): |
| 218 | h = self.encoder(x) |
| 219 | h = self.quant_conv(h) |
| 220 | quant, emb_loss, info = self.quantize(h) |
| 221 | return quant, emb_loss, info |
| 222 | |
| 223 | def encode_to_prequant(self, x): |
| 224 | h = self.encoder(x) |
no test coverage detected