# C3W2\_Assingment model.fit error

**URL:** <https://community.deeplearning.ai/t/c3w2-assingment-model-fit-error/197413>\
**Category:** Natural Language Processing in TensorFlow\
**Tags:** week-module-3, week-module-4, week-module-2\
**Created:** [September 2, 2022, 9:47am UTC](https://community.deeplearning.ai/t/c3w2-assingment-model-fit-error/197413 "2022-09-02T09:47:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bulat](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@Bulat](https://community.deeplearning.ai/u/Bulat)\
**Post date:** [September 2, 2022, 9:47am UTC](https://community.deeplearning.ai/t/c3w2-assingment-model-fit-error/197413/1 "2022-09-02T09:47:37Z")

</div>

![изображение](https://global.discourse-cdn.com/dlai/original/3X/3/a/3af86e03c7a83a815070bd6bb78a48d7ee211a0a.png)  
Hi, i have a trouble.  
How to solve it?

---

<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:** [September 2, 2022, 10:56am UTC](https://community.deeplearning.ai/t/c3w2-assingment-model-fit-error/197413/2 "2022-09-02T10:56:51Z")

</div>

Hi,

It is probably a mishape between inputs and labels. I would check those at first If I was you.

---

<div class="post-metadata">

**Author:** ![Bulat](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@Bulat](https://community.deeplearning.ai/u/Bulat)\
**Post date:** [September 2, 2022, 11:10am UTC](https://community.deeplearning.ai/t/c3w2-assingment-model-fit-error/197413/3 "2022-09-02T11:10:12Z")

</div>

![изображение](https://global.discourse-cdn.com/dlai/original/3X/0/a/0a79818cbe377cc9a5a99fba7096a3f5267d9e04.png)

---

<div class="post-metadata">

**Author:** ![Bulat](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@Bulat](https://community.deeplearning.ai/u/Bulat)\
**Post date:** [September 2, 2022, 3:08pm UTC](https://community.deeplearning.ai/t/c3w2-assingment-model-fit-error/197413/4 "2022-09-02T15:08:59Z")

</div>

I solve this with using model.summary()  
I found some bugs in my code
