As far as I know currently only CUDA is supported.
I believe @hughperkins did some work on OpenCL support, but I’m not sure, if that’s even compatible with an Intel on-board GPU.
However, you could try Google Collab with the free GPU support.
I tried it recently and they used a K80 GPU. I believe your session will close/restart after 24 hours, so your experiment should be done by then.
Somehow, I just managed to install PyTorch version 0.3.0 following an instruction, but I’m sure I was too impatient to get the recent version running. 
Add these lines to the beginning of your script and you should be good to go:
# Install Pytorch and torchvision
from os import path
from wheel.pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag
platform = '{}{}-{}'.format(get_abbr_impl(), get_impl_ver(), get_abi_tag())

accelerator = 'cu80' if path.exists('/opt/bin/nvidia-smi') else 'cpu'

!pip3 install -q http://download.pytorch.org/whl/{accelerator}/torch-0.3.0.post4-{platform}-linux_x86_64.whl torchvision