DLS Course 2: Week 3: Exercise 6: Error with compute_total_loss function

{Moderator Edit: Solution Code Removed}

I’m getting this error. I tried various attempts, but it didn’t work.

You have to transpose labels and logits. Please check this.

PS: Sharing your code is not allowed. Next time, only share your full error.

Got it. Thank you very much, Saif!