# Exercise 6: compute\_total\_loss

**URL:** <https://dlai.staged-by-discourse.com/t/exercise-6-compute-total-loss/345470>\
**Category:** Improving Deep Neural Networks: Hyperparameter tun\
**Tags:** coursera-platform\
**Created:** [May 28, 2023, 2:03pm UTC](https://dlai.staged-by-discourse.com/t/exercise-6-compute-total-loss/345470 "2023-05-28T14:03:12Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [May 28, 2023, 2:25pm UTC](https://dlai.staged-by-discourse.com/t/exercise-6-compute-total-loss/345470/5 "2023-05-28T14:25:07Z")

</div>

The problem is that you are using `reduce_mean` instead of `reduce_sum`. They talked about that in the instructions. [Here’s a thread](http://dlai.staged-by-discourse.com/t/dls-course2-week-3-exercise-6-compute-total-loss-method/234856/10) which explains in more detail why they do it that way.

---

_[View the full topic](https://dlai.staged-by-discourse.com/t/exercise-6-compute-total-loss/345470)._
