Are you sure you are using 0.4.1?
torch.jit was added in the preview of 1.0 or at least after 0.4.1 as far as I know.
I’ve tried the tutorial on my machine and it’s working. Could you install the 1.0 preview and try it again?
You will find the install instructions here 19.