(self, x, **kwargs)
| 97 | print(f"Restored from {path}") |
| 98 | |
| 99 | def encode(self, x, **kwargs): |
| 100 | |
| 101 | h = self.encoder(x) |
| 102 | moments = self.quant_conv(h) |
| 103 | posterior = DiagonalGaussianDistribution(moments) |
| 104 | return posterior |
| 105 | |
| 106 | def decode(self, z, **kwargs): |
| 107 | z = self.post_quant_conv(z) |
no test coverage detected