Which PyTorch version are you using?
You can check it with print(torch.__version__).
It’s working on my machine, so if you are using the latest stable release of the 1.0 preview, could you please post a code snippet reproducing this error?