Do PyTorch or TorchVision support HEIF/HEIC encoding?

Do PyTorch or TorchVision support HEIF/HEIC encoding? Or are there other methods that can use GPUs or acceleration to save HEIC images?