Attached is a picture of my code and the error. Could anyone explain to me what is wrong?
I’ve transposed the logits and labels. Set y-true as labels, and y-pred as logits. And did the “from_logits = True” part.
Also, please don’t show your code in the post. You can always send it as a DM to a mentor or just show the errors, as to not spoil the answer to others