Error while computing compute_total_loss Week 3 assignment

If you are surprised by the need for the transpose, it was mentioned in the instructions but only briefly. They didn’t really say much about why: here’s a thread which discusses that.