def METHOD_NAME(self, input: Tensor, target: Tensor) -> Tensor:
    fake_img, latents = self.generator(input, return_latents=True)
    path_loss, self.mean_path_length, path_lengths = self.g_path_regularize(
        fake_img, latents, self.mean_path_length)
    return path_loss