# Assignment file format

**URL:** <https://community.deeplearning.ai/t/assignment-file-format/232193>\
**Category:** Device-based Models with TensorFlow Lite\
**Tags:** week-module-1\
**Created:** [November 18, 2022, 2:16pm UTC](https://community.deeplearning.ai/t/assignment-file-format/232193 "2022-11-18T14:16:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jenna](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@Jenna](https://community.deeplearning.ai/u/Jenna)\
**Post date:** [November 18, 2022, 2:16pm UTC](https://community.deeplearning.ai/t/assignment-file-format/232193/1 "2022-11-18T14:16:52Z")

</div>

I am wondering if there is instructions on how to submit the assignment. What type of file should we submit? What format should it be? Thank you.

---

<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:** [November 24, 2022, 1:04pm UTC](https://community.deeplearning.ai/t/assignment-file-format/232193/2 "2022-11-24T13:04:49Z")

</div>

Hi Jenna. There are instructions toward the end of the notebook:

 ![Screen Shot 2022-11-24 at 9.01.58 PM](https://global.discourse-cdn.com/dlai/original/3X/1/c/1cffc60a3200a41e23bc2b1a3f38c6ad91f0761f.png)

Coursera Labs will automatically convert your notebook to the format that the grader will accept. I recommend saving your work first though before pressing the `Submit Assignment` button. Sometimes Coursera gets a blank version of the notebook if that’s not done. We’ll modify the instructions in the notebook to make that clearer.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Jenna](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@Jenna](https://community.deeplearning.ai/u/Jenna)\
**Post date:** [December 1, 2022, 6:54pm UTC](https://community.deeplearning.ai/t/assignment-file-format/232193/3 "2022-12-01T18:54:38Z")

</div>

Thank you so much Chris.

I submitted the notebook in ipynb format, and wasn’t able to pass the grader, with “Function “model.fit” not found in Code Cell 11. Please make sure you have not altered the cell positions from the original exercise question.”.

So not 100% about why. Thank you.  
T

---

<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:** [December 4, 2022, 6:54am UTC](https://community.deeplearning.ai/t/assignment-file-format/232193/4 "2022-12-04T06:54:06Z")

</div>

Hi Jenna. You might have introduced a new cell while debugging your solution. You can delete that and resubmit. If it doesn’t work, please see this [post](https://community.deeplearning.ai/t/mlep-how-to-refresh-your-workspace/190440) for instructions on how to get a new notebook. Once you have the blank notebook, you can copy your old solutions there, and then resubmit. Hope it works!

---

<div class="post-metadata">

**Author:** ![Jenna](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@Jenna](https://community.deeplearning.ai/u/Jenna)\
**Post date:** [December 6, 2022, 5:18am UTC](https://community.deeplearning.ai/t/assignment-file-format/232193/5 "2022-12-06T05:18:36Z")

</div>

Thank you @chris.favila.

Fixed it but now it’s saying that “Sorry, your submission was incorrect. Please try again. ‘image’ must be at least three-dimensional.”.

Here is my code:

def format\_example(image, label):  
# Cast image to float32  
image = tf.cast(image, tf.float32)

```
# Normalize the image in the range [0, 1]
image = tf.image.per_image_standardization(image)

return image, label

```

Not sure where it went wrong. Thank you.

---

<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:** [December 14, 2022, 2:12pm UTC](https://community.deeplearning.ai/t/assignment-file-format/232193/6 "2022-12-14T14:12:20Z")

</div>

Hi Jenna! Sorry just saw this. You may want to check [this post](https://community.deeplearning.ai/t/course2-week1-assignment-cant-reach-the-requested-accuracy/232559/4) because the solution is similar (but your initial solutions are different). Just let me know if you need more hints. Thanks!

---

<div class="post-metadata">

**Author:** ![Jenna](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@Jenna](https://community.deeplearning.ai/u/Jenna)\
**Post date:** [December 14, 2022, 10:30pm UTC](https://community.deeplearning.ai/t/assignment-file-format/232193/7 "2022-12-14T22:30:51Z")

</div>

Hi Chris,

I probably still need more hint. The model is fine, but the grader wouldn’t pass me for some reason. Thank you.

---

<div class="post-metadata">

**Author:** ![Jenna](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@Jenna](https://community.deeplearning.ai/u/Jenna)\
**Post date:** [December 14, 2022, 11:23pm UTC](https://community.deeplearning.ai/t/assignment-file-format/232193/8 "2022-12-14T23:23:12Z")

</div>

Actually I tried again with 2nd line of the code within “format\_example” - divided the pixels directly and it worked! Thank you!
