# Problem with A3 Week 1 grading

**URL:** <https://community.deeplearning.ai/t/problem-with-a3-week-1-grading/525076>\
**Category:** Sequence Models\
**Tags:** coursera-platform\
**Created:** [December 22, 2023, 6:29pm UTC](https://community.deeplearning.ai/t/problem-with-a3-week-1-grading/525076 "2023-12-22T18:29:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yrg](https://avatars.discourse-cdn.com/v4/letter/y/53a042/32.png) [@yrg](https://community.deeplearning.ai/u/yrg)\
**Post date:** [December 22, 2023, 6:29pm UTC](https://community.deeplearning.ai/t/problem-with-a3-week-1-grading/525076/1 "2023-12-22T18:29:18Z")

</div>

I completed the first exercise successfully, but things stopped working regarding exercises two and three. I got an error of "  
AttributeError: The layer “lstm\_4” has multiple inbound nodes, with different output shapes. Hence the notion of “output shape” is ill-defined for the layer. Use `get_output_shape_at(node_index)` instead." even though the number of total and trainable parameters is the same in the summary (picture below). I tried to restart the kernel and clear the output, but this didn’t help (after restarting it showed All tests passed for exercise one only, but it didn’t count in the grader), a similar thing happened with exercise 3. When I tried to submit my grades it gave me 0/100.

 ![Screenshot 2023-12-22 212106](https://global.discourse-cdn.com/dlai/original/3X/7/3/738a6f66624dbb521d8deffee1b6fb10aa6fbf23.png)

 ![Screenshot 2023-12-22 212722](https://global.discourse-cdn.com/dlai/original/3X/5/e/5e77b5a09b34c72d79062d4fcbcda9c285248508.png)

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [December 22, 2023, 7:02pm UTC](https://community.deeplearning.ai/t/problem-with-a3-week-1-grading/525076/2 "2023-12-22T19:02:52Z")

</div>

The “multiple inbound nodes” error can have several different causes.

The first thing to be aware of is that in this assignment, every time you modify anything in the model, you must restart the kernel and run all of the cells again.

This is because the model is a global variable, and any changes in any cell make the previous results invalid.

So that’s the first thing to try.

---

<div class="post-metadata">

**Author:** ![yrg](https://avatars.discourse-cdn.com/v4/letter/y/53a042/32.png) [@yrg](https://community.deeplearning.ai/u/yrg)\
**Post date:** [December 23, 2023, 2:29pm UTC](https://community.deeplearning.ai/t/problem-with-a3-week-1-grading/525076/3 "2023-12-23T14:29:30Z")

</div>

I don’t know man. I feel like I tried everything. I restarted and removed the outputs of the kernel many times, nothing worked.

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [December 23, 2023, 4:24pm UTC](https://community.deeplearning.ai/t/problem-with-a3-week-1-grading/525076/4 "2023-12-23T16:24:25Z")

</div>

Ok, it’s probably time to go to “plan B” and actually look at your notebook. Please see your DMs for a message from me.

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [December 23, 2023, 8:13pm UTC](https://community.deeplearning.ai/t/problem-with-a3-week-1-grading/525076/5 "2023-12-23T20:13:02Z")

</div>

To close the loop on the public thread, there was a bug in `music_inference_model` where the x value for the next timestep was not being computed correctly.
