Hi I want to convert my output of tensor values those I’m getting from UNet to images . Is there any way to do this? Below is my code chunk where i want to do
    def test_step(self, batch, batch_nb):
        x, y = batch
        y_hat = self.forward(x)
        loss = torch.nn.MSELoss()
        op_loss = loss(y_hat, y)
        #saving tensors to images code goes here
        print(op_loss)
        return {'test_loss': op_loss}

I want to save the tensors to images to some local file path after calculating op_loss