AttributeError: 'module' object has no attribute 'arange'

I see the pytorch documentation, there is this API but why is it wrong, thank you for your help

print torch.arange(1, 4)
AttributeError: ‘module’ object has no attribute ‘arange’

Which version of pytorch do you have? Make sure you look at the doc for your installed version.

My pytorch version is ‘0.1.11_5’

you should upgrade to the latest version of pytorch which is 0.3. Use our website http://pytorch.org to get instructions on installing the latest version.

thank you very much,My version is a bit low.

Thank you very much, I updated as soon as possible