I now use PyTorch 1.0 preview.However when I run the code writting in PyTorch 0.4.0.It shows the following error:

image.png1120×263 16 KB

I have known it’s the problem because of version after googling.But I don’t find the way how to fix the problem.I’m new to PyTorch, leave alone the latest PyTorch 1.0.Anyone can help me? Or just fallback to the stable PyTorch 0.4.x version?