# Stuck due to error on the last grading test of week 3

**URL:** <https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807>\
**Category:** Advanced Learning Algorithms\
**Tags:** week-module-5, dl-ai-learning-platform\
**Created:** [March 25, 2026, 1:16am UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807 "2026-03-25T01:16:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiofilus\_S](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tiofilus_s/32/129828_2.png) [@Tiofilus\_S](https://community.deeplearning.ai/u/Tiofilus_S)\
**Post date:** [March 25, 2026, 1:16am UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/1 "2026-03-25T01:16:55Z")

</div>

here are the condition for Exercise 1-5 (tried to attach but max 1 media)  
but in submission I got this error:

please help. I’ve restart kernel and clear output several times.

 ![image](https://global.discourse-cdn.com/dlai/original/3X/7/8/786595c99aa938476657aa00df882cb6a0e75212.png)

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [March 25, 2026, 6:48am UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/2 "2026-03-25T06:48:02Z")

</div>

You can always restore the original version in the 3 dots on the top right corner of the Lab! But perhaps it might be a bug in your account. I see some cases in the Forum here. May be @chris.favila can also have a look at this!

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [March 25, 2026, 11:59am UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/3 "2026-03-25T11:59:18Z")

</div>

Hello @Tiofilus_S,

The common thing in Exercise 3, 4 and 5 is that you provide a Tensorflow model for the autograder to check, and a valid Tensorflow model has a `build` attribute. The message says `'NoneType' object has no attribute 'build'`, so I believe somehow your submission was giving the autograder `None` objects instead of Tensorflow models.

The quick fix would be, as @gent.spah suggested, restore the original version, but after you have backup your current work. To backup, you may download the notebook to your computer, or you may just copy-and-paste your works to a text editor and save it.

With the original version, you may copy-and-paste your works back but make sure you only make changes in the areas bounded by these lines:

```auto
        ### START CODE HERE ### 
        
        
        
        ### START CODE HERE ### 

```

If you strictly follow these steps, the autograder should be able to see your Tensorflow models.

Cheers,  
Raymond

---

<div class="post-metadata">

**Author:** ![Tiofilus\_S](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tiofilus_s/32/129828_2.png) [@Tiofilus\_S](https://community.deeplearning.ai/u/Tiofilus_S)\
**Post date:** [March 26, 2026, 2:15pm UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/4 "2026-03-26T14:15:15Z")

</div>

Hi @gent.spah & @rmwkwok , thank you for the information. I just tried to reset it to original (after download the answer) then tried to pasted back each answer, exactly only changing the codes in marked area. But the result still the same.

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [March 27, 2026, 2:02am UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/5 "2026-03-27T02:02:16Z")

</div>

I was able to get full marks by following the steps in my last response.

@chris.favila, is there anything you can do from your side? From @Tiofilus_S’s response, it seems that even making and only making changes as required can result in that the autograder consistently (in all 3 exercises) graded on unexpected (`None`) objects.

---

<div class="post-metadata">

**Author:** ![chris.favila](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/chris.favila/32/126338_2.png) [@chris.favila](https://community.deeplearning.ai/u/chris.favila)\
**Post date:** [March 27, 2026, 3:37am UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/6 "2026-03-27T03:37:49Z")

</div>

Hi! Can you send me your latest notebook via direct message? You can click my name then the blue Message button. Thank you.

---

<div class="post-metadata">

**Author:** ![Tiofilus\_S](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tiofilus_s/32/129828_2.png) [@Tiofilus\_S](https://community.deeplearning.ai/u/Tiofilus_S)\
**Post date:** [March 27, 2026, 3:14pm UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/7 "2026-03-27T15:14:01Z")

</div>

alright, I’ll send

---

<div class="post-metadata">

**Author:** ![chris.favila](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/chris.favila/32/126338_2.png) [@chris.favila](https://community.deeplearning.ai/u/chris.favila)\
**Post date:** [March 30, 2026, 2:28am UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/8 "2026-03-30T02:28:53Z")

</div>

Hi! As per the submitted file, this is a problem with the grader being too strict. Your solution should be correct but for now, please avoid adding `tf.keras.Input(shape=(...))` in your model definitions (ie. you can start with the Dense layer right away). If you remove those, you will get the perfect score. We’ll note this down for the next grader revision. Hope that’s okay. Thank you.

---

<div class="post-metadata">

**Author:** ![Tiofilus\_S](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tiofilus_s/32/129828_2.png) [@Tiofilus\_S](https://community.deeplearning.ai/u/Tiofilus_S)\
**Post date:** [March 30, 2026, 1:25pm UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/9 "2026-03-30T13:25:09Z")

</div>

Done. Thank you very much, Chris.  
Case closed.

---

<div class="post-metadata">

**Author:** ![chris.favila](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/chris.favila/32/126338_2.png) [@chris.favila](https://community.deeplearning.ai/u/chris.favila)\
**Post date:** [April 1, 2026, 6:27am UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/10 "2026-04-01T06:27:16Z")

</div>

Great! Glad to hear that! Will close this topic now.

---

<div class="post-metadata">

**Author:** ![chris.favila](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/chris.favila/32/126338_2.png) [@chris.favila](https://community.deeplearning.ai/u/chris.favila)\
**Post date:** [April 1, 2026, 6:27am UTC](https://community.deeplearning.ai/t/stuck-due-to-error-on-the-last-grading-test-of-week-3/890807/11 "2026-04-01T06:27:21Z")

</div>

Closed on April 1, 2026, 6:27am UTC


