(self, x)
| 102 | self.model_ema(self) |
| 103 | |
| 104 | def encode(self, x): |
| 105 | h = self.encoder(x) |
| 106 | h = self.quant_conv(h) |
| 107 | quant, emb_loss, info = self.quantize(h) |
| 108 | return quant, emb_loss, info |
| 109 | |
| 110 | def encode_to_prequant(self, x): |
| 111 | h = self.encoder(x) |
no test coverage detected