Error during training

I am trying to run the 1st lesson on google colab and it just keeps throwing errors. After solving dozens of issues I am stuck here while executing ", 3) " command

IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number

please help !!

You need to provide more information. A link to the notebook might help.
Also seems like a type error. Try pressing shift-tab after typing It seems the api might be a bit different for tensor flow.