def __init__(self, device):
    super().__init__()
    self.device = device
    self.decoder = DecoderCBatchNorm(dim=3, z_dim=0, c_dim=256, hidden_size=256).to(self.device)
    self.encoder = Resnet18(256, normalize=True, use_linear=True).to(self.device)
    self.p0_z = get_prior_z(self.device)
def __init__(self, device):
    super().__init__()
    self.device = device
    self.decoder = DecoderCBatchNorm(dim=3, z_dim=0, c_dim=256, hidden_size=256).to(self.device)
    self.encoder = Resnet18(256, normalize=True, use_linear=True).to(self.device)
    self.p0_z = get_prior_z(self.device)