Error during training


(Albin) #1

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 " learn.fit(0.01, 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 !!


(Rishabh) #2

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 learn.fit(). It seems the fast.ai api might be a bit different for tensor flow.