# C2\_W3\_Assignment. Error in exercise 7

**URL:** <https://community.deeplearning.ai/t/c2-w3-assignment-error-in-exercise-7/294658>\
**Category:** Calculus for Machine Learning and Data Science\
**Tags:** week-module-3\
**Created:** [March 22, 2023, 1:04pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-error-in-exercise-7/294658 "2023-03-22T13:04:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhagyesh\_Reddy](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@Bhagyesh\_Reddy](https://community.deeplearning.ai/u/Bhagyesh_Reddy)\
**Post date:** [March 22, 2023, 1:04pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-error-in-exercise-7/294658/1 "2023-03-22T13:04:23Z")

</div>

![Screenshot (35)](https://global.discourse-cdn.com/dlai/original/3X/5/0/50eb78505940271b8797a4b574542c96fee50a84.png)

I got the above error while executing the code. Any help on how to clear that?

---

<div class="post-metadata">

**Author:** ![Isaak\_Kamau](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/isaak_kamau/32/124242_2.png) [@Isaak\_Kamau](https://community.deeplearning.ai/u/Isaak_Kamau)\
**Post date:** [March 22, 2023, 3:42pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-error-in-exercise-7/294658/2 "2023-03-22T15:42:24Z")

</div>

Hello @Bhagyesh_Reddy  
The error is telling us that the two arrays you are trying to use in the operation have different shapes: (3,5) and (2,5). The first dimension of the two arrays (3 and 2) do not match, which means that they cannot be broadcasted together.

Please try checking whether the vectors you are using have a compatible shape. Also, edit the post, You can’t share your assignment answers publicly.

Happy Learning  
Isaak

---

<div class="post-metadata">

**Author:** ![akanchha\_choudhary](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/akanchha_choudhary/32/41694_2.png) [@akanchha\_choudhary](https://community.deeplearning.ai/u/akanchha_choudhary)\
**Post date:** [March 24, 2023, 8:50pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-error-in-exercise-7/294658/3 "2023-03-24T20:50:59Z")

</div>

Hello…I was solving week 2 assignment of 1st courrse…While executing the code it says “All test Passed” but when I see grade it show 0 out of 10…could you look into it?Thanks

---

<div class="post-metadata">

**Author:** ![Isaak\_Kamau](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/isaak_kamau/32/124242_2.png) [@Isaak\_Kamau](https://community.deeplearning.ai/u/Isaak_Kamau)\
**Post date:** [March 25, 2023, 1:05pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-error-in-exercise-7/294658/4 "2023-03-25T13:05:30Z")

</div>

Hello @akanchha_choudhary  
Have you tried partial grading? Using `#grade-up-to-here`

---

<div class="post-metadata">

**Author:** ![akanchha\_choudhary](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/akanchha_choudhary/32/41694_2.png) [@akanchha\_choudhary](https://community.deeplearning.ai/u/akanchha_choudhary)\
**Post date:** [March 28, 2023, 12:20pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-error-in-exercise-7/294658/6 "2023-03-28T12:20:16Z")

</div>

Yes I tried …I wrote to grade upto exercise 3 but it seems i need to get atleast 80 to pass…i am gettig 50

---

<div class="post-metadata">

**Author:** ![Isaak\_Kamau](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/isaak_kamau/32/124242_2.png) [@Isaak\_Kamau](https://community.deeplearning.ai/u/Isaak_Kamau)\
**Post date:** [March 28, 2023, 8:40pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-error-in-exercise-7/294658/7 "2023-03-28T20:40:08Z")

</div>

Hello, @akanchha_choudhary I think for your case the grader is fine. Probably you need to revise your assignment’s answers. Passing all tests doesn’t necessarily mean your answers are correct!

I would also suggest you move the `#grade-up-to-here` to the last cell of the final exercise to make sure everything has been graded.

Happy learning  
Isaak

---

<div class="post-metadata">

**Author:** ![phanidhar\_irukuvajja](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@phanidhar\_irukuvajja](https://community.deeplearning.ai/u/phanidhar_irukuvajja)\
**Post date:** [August 25, 2023, 7:53am UTC](https://community.deeplearning.ai/t/c2-w3-assignment-error-in-exercise-7/294658/8 "2023-08-25T07:53:13Z")

</div>

Hi Isaak,

I get all tests passed till exercise 6 in the C2\_W3 assignment. But, get ‘Assertion error’ when I execute exercise 7 and it specifically points to forward\_propagation for A2. But, the individual exercise for forward\_propagation was correct and tests passed without error. I’m not able to rectify this error and hence unable to pass the assignment - since all the remaining exercises depend on this one particular error to be resolved.
