Can you share screenshot after expanding the errors (click 8 frames
to do that)?
Or
You can share a link to your notebook and somebody can look at the code.
Or
check this thread: dict_values error
I too encountered the same issue.
Rather than using a dict to store loss values, you could just simply store it in a list.
And thereby, hwile plotting,
can just simply write-→ plt.plot(loss)