(self, x)
| 38 | return self.encoder(x.to(self.encoder.dtype))['encoded'] |
| 39 | |
| 40 | def get_encoder_indices(self, x): |
| 41 | # img -> encoder -> indices |
| 42 | return self.encoder(x.to(self.encoder.dtype))['bottleneck_rep'] |
| 43 | |
| 44 | @torch.inference_mode() |
| 45 | def decode_from_encoder_indices(self, indices, args={}): |
nothing calls this directly
no outgoing calls
no test coverage detected