(self, x)
| 94 | self.model_ema(self) |
| 95 | |
| 96 | def encode(self, x): |
| 97 | h = self.encoder(x) |
| 98 | h = self.quant_conv(h) |
| 99 | quant, emb_loss, info = self.quantize(h) |
| 100 | return quant, emb_loss, info |
| 101 | |
| 102 | def encode_to_prequant(self, x): |
| 103 | h = self.encoder(x) |
no test coverage detected