PyTorch PIL to Tensor and vice versa

This link is not working.