Hi! I am having this error and could not solve it. Why is this happening?
It seems like you are using loss_sum += …
But to be able to do this, you need to first initialize loss_sum = something
oh, yes. I fixed the error thanks a lot!
You are most welcome @Ayse_Nehir_Cevik