Iteration over a 0-d tensor

Thank you for your reply but I did it on colab and it’s error is:
PyTorch 0.4.1 is not supported (needs to be 0.3.1)