# Error while computing compute\_total\_loss Week 3 assignment

**URL:** <https://dlai.staged-by-discourse.com/t/error-while-computing-compute-total-loss-week-3-assignment/294785>\
**Category:** Improving Deep Neural Networks: Hyperparameter tun\
**Tags:** coursera-platform\
**Created:** [March 22, 2023, 4:57pm UTC](https://dlai.staged-by-discourse.com/t/error-while-computing-compute-total-loss-week-3-assignment/294785 "2023-03-22T16:57:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://dlai.staged-by-discourse.com/u/paulinpaloalto)\
**Post date:** [March 22, 2023, 5:25pm UTC](https://dlai.staged-by-discourse.com/t/error-while-computing-compute-total-loss-week-3-assignment/294785/3 "2023-03-22T17:25:15Z")

</div>

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](http://dlai.staged-by-discourse.com/t/course-2-week-3-compute-total-loss-logits-labels/293215/4) which discusses that.

---

_[View the full topic](https://dlai.staged-by-discourse.com/t/error-while-computing-compute-total-loss-week-3-assignment/294785)._
