def log_image(self, key: str, global_step: int, epoch: int, img_tensor: Tensor):
    self.writer.add_image(key, img_tensor, global_step=global_step)
def log_image(self, key: str, global_step: int, epoch: int, img_tensor: Tensor):
    self.writer.add_image(key, img_tensor, global_step=global_step)