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