# Week1 Assigment2. Help. Match error

**URL:** <https://community.deeplearning.ai/t/week1-assigment2-help-match-error/18276>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [June 30, 2021, 5:04pm UTC](https://community.deeplearning.ai/t/week1-assigment2-help-match-error/18276 "2021-06-30T17:04:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielBelmont](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@DanielBelmont](https://community.deeplearning.ai/u/DanielBelmont)\
**Post date:** [June 30, 2021, 5:04pm UTC](https://community.deeplearning.ai/t/week1-assigment2-help-match-error/18276/1 "2021-06-30T17:04:22Z")

</div>

I have this error in the function convolutional\_model:

[‘Conv2D’, (None, 64, 64, 8), 392, ‘same’, ‘linear’, ‘GlorotUniform’]

does not match the input value:

[‘Dense’, (None, 64, 64, 6), 24, ‘softmax’].

Some idea?

---

<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:** [July 1, 2021, 4:38am UTC](https://community.deeplearning.ai/t/week1-assigment2-help-match-error/18276/2 "2021-07-01T04:38:21Z")

</div>

You have used a Dense layer somewhere that you should have used a Conv2D layer.  
Judging by the sizes, I’d guess it’s probably on the “Z1 = …” line.
